Add filter tabs of woocomerce category in a product slider

I would like to display a product category filter in a product slider as shown in the image to change products by clicking on those filters. Can anyone tell me if there is a complement or other solution to achieve this?

Thanks in advance

sharepoint server – I want to get a list where the invoice _category is service, please help?

Try using your CAML in the following format:



  1. In the CAML query, you must use the internal name of your column / field.

    Find the internal name of the SharePoint column

Full code:

string siteUrl = "";  

ClientContext clientContext = new ClientContext(siteUrl);  
SP.List oList = clientContext.Web.Lists.GetByTitle("ListName");  

CamlQuery camlQuery = new CamlQuery();  
camlQuery.ViewXml = "Service";  

ListItemCollection collListItem = oList.GetItems(camlQuery);  


foreach (ListItem oListItem in collListItem) {  
    Console.WriteLine("ID: {0} nTitle: {1}", oListItem.Id, oListItem("Title"));  

categories: Can the name of the publication be equal to the name of the category?

I have an old website written in static HTML pages. Now I want to rebuild a new website through WordPress. And make sure all the SEO you have done with the previous site is transferred to the new site.

So, I want to migrate the URLs from the left (old site) to the right (new site) as shown below:

URL1 (product home page): -> (No changes)

URL2 (product order page): ->

So I want to use /% category% /% postname% / as the permanent link. Now the problem is that, for URL1, the "product1" will be a publication name. However, for URL2, "product1" will be a category name. So, can the name of the publication be the same as the name of the category? Or is it a good practice to do homework?

categories – Filtering posts in category by tag URL

I am still learning WP, so this may seem quite obvious to veterans.

They gave me administrator rights for a WordPress site and told me to replicate what my predecessor did with a specific pair of pages.

These two pages show a number of publications that belong to a specific category (catA). In addition, each page further filters the publications by their respective tags (tag1 and tag2).

The strange thing is that the URL of the two pages shows its label, not the category. Example:

I guess there is a definite link between the category and the tags, and I have even found the style for the category that acts on the tags, but I'm not sure how to add more tags to this link.

If someone can point me in the right direction to find and edit this link, it would be helpful.

Custom permanent link structure for publications in a specific category

Hello, I am trying to rewrite the permanent links structure for publications in a specific category, the structure must be the category name – author name – publication title
When I use the following code, there is no author name in the URL
Please let me know where I am wrong.

add_filter( 'post_link', 'custom_permalink', 'author_link', 10, 3 );
function custom_permalink( $permalink, $post, $leavename ) {
// Get the category for the post
$category = get_the_category($post->ID);
if (  !empty($category) && $category(0)->cat_name == "Tips" ) {
    $cat_name = strtolower($category(0)->cat_name);
    $author_nickname = get_user_meta( $author_id, 'nickname', true );
    $permalink = trailingslashit( home_url('/'. $cat_name . '/' . 
$author_nickname . '/' . $post->post_name .'/' ) );
return $permalink;

add_filter( 'category_link', 'custom_category_permalink', 10, 2 );
function custom_category_permalink( $link, $cat_id ) {
$slug = get_term_field( 'slug', $cat_id, 'category' );
if ( ! is_wp_error( $slug ) && 'tips' === $slug ) {
    $link = home_url( user_trailingslashit( '/tips/', 'category' ) );
return $link;

add_action( 'init', 'custom_rewrite_rules' );
function custom_rewrite_rules() {
    'top' // The rule position; either 'top' or 'bottom' (default).

'tips/d+/((^/)+)(?:/((0-9)+))?/?$', // <- here, add the d+/

Theory of the ct category: characterization of the left / right classes of factorization systems (weak) in locally presentable categories

Leave $ mathcal M subseteq Mor ( mathcal C) $ be a class of morphisms in a locally presentable category.

  1. It is well known that $ mathcal M $ it is the left half of an accessible orthogonal factorization system iff $ mathcal M $ is accessible (as a complete subcategory of the morphism category $ mathcal C ^ (1)} $), and is closed under colimits in $ mathcal C ^ (1)} $, change of base, composition and isomorphisms.

  2. Similarly (although perhaps this is less known), $ mathcal M $ is he Right kind of an accessible orthogonal factorization system if it is accessible and embedded in an accessible way $ mathcal C ^ (1)} $and closed under limits in $ mathcal C ^ (1)} $, change of base, composition and isomorphisms. The test, of course, is not dual: it is observed that under these conditions, $ mathcal M $ it is accessible reflective in $ mathcal C ^ (1)} $, shows that a section of each map unit must be an isomorphism, so that the reflector provides factorizations and then verifies some things.

In the case of weak factorization systems (wfs), the situation may not be so simple. On the one hand, not all accessible wfs in a locally presentable category are co-generated, so any "small generation" argument will be more delicate.

  1. More specifically, the left class of a wfs can be accessible without the wfs being accessible, and conversely (at least under anti-large cardinal hypotheses) the left class of an accessible wfs does not need to be accessible. So, although one might guess that closure under co-products, change of basis, isomorphisms, composition, transfinite composition and retractions should almost characterize the left wfs classes accessible in locally presentable categories, it is not clear what kind of "accessibility" hypothesis to add to get a characterization

  2. However, there may be more hope to characterize the Right wfs classes in locally presentable categories. In particular, the following assumption seems reasonable:

Leave $ mathcal M subseteq Mor ( mathcal C) $ be a class of morphisms in a locally presentable category. Suppose that $ mathcal M $ is accessible and embedded in $ mathcal C ^ (1)} $, and closed under products, change of base, isomorphisms, composition, co-transfinite composition and retractions. Does it follow that $ mathcal M $ it is the correct kind of a weak factorization system accessible in $ math C $? If not, is there a characterization in similar lines?

Presumably, the proof of any characterization will proceed using some form of Garner's small object argument, but beyond that it is not clear to me.

magento2.3 – Changing the url category key is not updating URL Rewrites

I have a category called "Sports Shoes" in Magento. The category has many subcategories and products. Your URL key is "sports shoes."

After changing the category URL key to "sports shoes", the magento URL rewrite is not updated. All redirects are the same and no product category or URL that contains "sports shoes" works.

I tried re-indexing products but that did not solve the problem. I dare not use some type of URL regeneration extension, because my website contains more than 150k products. It would take days to complete that process.

But this is a feature that should work well in magento by default.

How can i fix it?

categories – Link to the most recent publication in my podcast category

I am trying to achieve what the author did here: How can I link to the most recent publication in a category?

However, after updating my functions.php file in my secondary theme, I cannot make it load the latest publication of the podcast category. When I try:

Come back with a list of all podcast episodes in the podcast category. When I try to go to

I get a Nothing Found page. I am sure there must be something simple that I am missing. I just don't know what it is. Any help would be highly appreciated!

magento2.2 – magento2, category products position in the catalog products list widget

I have added positions to the products in the category in the backend.

enter the description of the image here

This position is working on the Category page in Frontend. But this product position does not work in the Product List widget within a CMS page.

enter the description of the image here

How can this position value be used in the Product List widget?

This value is stored in this table in the magento2 database.
enter the description of the image here

php – How to display several results based on a single article per category?

In the database I have registered several articles among them I have added a new column called category Here are the main leagues, for example there are 10 different types of leagues and, of course, several articles with their respective category.

Now given the example what I want to achieve is to show 10 results, I solve this with a limit 10 but I only need to get one item per category, that is, print 10 items without repeating the category.

$stmt = $con->prepare("SELECT category, image, title, detail FROM news WHERE language=? AND active=? order by id_news DESC limit 10");

What parameters must be passed to the query to obtain what is desired?