Categories
CMS Mastering Development Wordpress

Category permalinks don’t work even after flushing

I have created a custom post type (portfolio) and I’m using the built-in Category taxonomy with it. When I view the category archives page, only regular posts are showing under the category, my custom posts aren’t there at all. The options to select categories are there in the Edit Post page (and Quick Edit), they […]

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

Use same slug base for Custom Post Type posts, and multiple taxonomy terms

I have done a lot of digging the past few days, and can come close, but not exactly what I need. I’m trying to alter a custom taxonomy/CPT permalink structure to all use the same slug base: /resources/. CPT: ‘resources’ TAX1, non-hierarchical: ‘type’ TAX2, hierarchical: ‘section’ I need the structure to look like this: /resources/ […]

Categories
CMS Mastering Development Wordpress

‘No Results Found’ on single post for custom post type

I’m using the CPT UI plugin to create a custom post type with a custom taxonomy. I’m finding however that the individual post page shows “No Results Found”. I’m using this page slug as the CPT custom rewrite slug: wbc-activity-page The terms page is working correctly on this url: domain.com/wbc-activity-page/home/ The issue is that the […]

Categories
CMS Mastering Development Wordpress

Custom post type hierarchical taxonomy slug

I am working on a test. Where i want the follow to be able to work: https://1587469162.webton.dev/referenties/ = page https://1587469162.webton.dev/referenties/hoofdcategorie/ = main taxonomy https://1587469162.webton.dev/referenties/hoofdcategorie/subcategorie/ = sub taxonomy https://1587469162.webton.dev/referenties/hoofdcategorie/subcategorie/referentienaam-3/ = single reference For so far I got this working, but I allso want the following to be able to work: https://1587469162.webton.dev/referenties/hoofdcategorie/referentienaam/ = single reference but shows […]

Categories
CMS Mastering Development Wordpress

Custom rewrite url category

I’m trying to add custom rewrite rule for my custom post type. What I want is that www.domain.com/erlebnisse show all posts (that works). Also I want that www.domain.com/erlebnisse/category shows all post with category match. And also I want that www.domain.com/erlebnisse/post-name shows the post. What works is: Show all Show post with category What is not […]

Categories
CMS Development Wordpress

Custom Taxonomy “Add New” redirects curious

i created a custom post called nt-recipe. i also added a custom taxonomy nt-category Cause I want to control the position of items in the CPT admin menu, I set show_in_menu to false and added this custom function: add_action(‘admin_menu’, ‘add_nt_taxonomy_submenu’); function add_nt_taxonomy_submenu(){ $nt_separator = ‘<span style=”display:block; margin:1px 0 1px -5px; padding:0; height:1px; line-height:1px; background:#CCCCCC;”></span>’; add_submenu_page( […]

Categories
CMS Development Wordpress

How to convert hierarchical Pages to hierarchical Custom Post Types? Slugs get a number as if they were duplicates

I have an existing WP installation with 300 Pages, hierarchically structured. Editors intend to create around 2000 of them. Over time it becomes hard to find a particular page with the wordpress search function in the admin panel and it is hard to select a parent since there are many items in the dropdown. I […]

Categories
CMS Development Wordpress

Custom Post Type Taxonomy not showing

I have a class for registering post types based on the WordPress Plugin Boiler Plate, in the below can anyone tell me why the taxonomy isn’t showing in the admin menus at all? /** * Register custom post type * */ class Hi_Food_Menu_Post_Types { /** * Register custom post type * * @link https://codex.wordpress.org/Function_Reference/register_post_type */ […]

Categories
CMS Development Wordpress

Custom taxonomy and custom post type – wrong permalinks and template

so here is the deal – I’ve got a CPT called opencourses. It has some permalink structure, lets say: open-courses. Recently I’ve decided to add here a custom taxonomy as well. Im doing it via this code: // Register Custom Taxonomy function custom_taxonomy_blocks() { $labels = array( ‘name’ => _x( ‘Bloki szkoleniowe’, ‘Taxonomy General Name’, […]