Categories
CMS Mastering Development Wordpress

How to get rewrited name of cusom taxonomy?

I have registered custom post taxonomy with rewrited name: register_taxonomy(‘behold_gallery-albums-subject’, ‘behold_gallery’,array( ‘hierarchical’ => true, ‘labels’ => $labels, ‘show_ui’ => true, ‘show_admin_column’ => true, ‘rewrite’ => array( ‘slug’ => ‘kategorie-galerii’, ‘with_front’ => true ), ‘update_count_callback’ => ‘_update_post_term_count’, ‘query_var’ => true, )); so name of my custom taxonomy is ‘behold_gallery-albums-subject’ but is rewrited to ‘kategorie-galerii’. If I […]

Categories
CMS Mastering Development Wordpress

Get Taxonomy in Elementor Query ID

I’m editing the Archive page of a Taxonomy of a CPT. In this page, I’d like to display just the posts of this category – then I should use the Widget of Archive Posts, but this widget doesn’t permit me to enter a Query ID, to customize the order of posts. Then I’m using the […]

Categories
CMS Development Wordpress

Display Posts by Custom Taxonomy Chosen Terms

I would like to show 4-5 posts by thumbnail and title below each product. For all products I have added a custom taxonomy to group all these products under their own group term. A custom tag so to speak. Now I want to query 5 posts under each product that share that same term chosen […]

Categories
CMS Development Wordpress

Template taxonomy-{taxonomy}.php doesn’t show my posts

I have a simple issue that can’t solve. I have a Custom Post Type called “Hardware” and inside a taxonomy called “hardware_category”. Im trying to show archive of each term with the file taxonomy-hardware_category.php but doesn’t return me any result (it should display 5 posts). Anything special to consider in my template? Thanks! <?php // […]

Categories
Development

active state adding to parent link on one, but not another

I’m using this script to add an “active” class to my menu items. One of my parent menu items is /path/library/. The class is added just fine there. And then on the pagination of that page (i.e., /path/library/?page-2) the class stays added to the parent just fine. For the parent link /path/signage/, the active link […]

Categories
Development

custom taxonomy pagination 404 (attachments)

I created a taxonomy for the media area, so I could assign all my images to specific categories. All is working fine with my taxonomy page, until I try to go to page 2, at which point, it throws a 404. I have tried about 8,000 different rewrite rules functions that I’ve found over the […]