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

Custom taxonomies not displaying in some custom posts

I have created a list of custom taxonomies for custom post type ‘Movies’, here’s part of the code: public function init_post_type() { // get label $labels = array( ‘name’ => __(‘Movies’, ‘tmdb’), ‘singular_name’ => __(‘movie’, ‘tmdb’), ‘add_new’ => __(‘Add new movie’, ‘tmdb’), ‘add_new_item’ => __(‘Add new movie’, ‘tmdb’), ‘edit_item’ => __(‘Edit movie’, ‘tmdb’), ‘new_item’ => […]

Categories
CMS Mastering Development Wordpress

Invalid Menu Items

I registered a taxonomy named districts, but when I add districts to nav menus, the nav menu items are invalid! Here is the code that registers the taxonomy: function masallah() { // Add new taxonomy, make it hierarchical like categories //first do the translations part for GUI $labels = array( ‘name’ => _x( ‘Districts’, ‘taxonomy […]

Categories
CMS Mastering Development Wordpress

Invalid Menu Items [duplicate]

https://youtu.be/lME3lY-kNbA I told the question on youtube video also I tell the question here again: I cant add my taxonomies to menu except 000 taxonomy.I dont know why but it works: the error : invalid items… ( red showing as you can see on youtube video ) this one works: function deneme() { // Add […]

Categories
CMS Mastering Development Wordpress

Invalid Menu Items – The most interesting question

The question needs it so I captured the error.It is necessary so please watch it. https://youtu.be/lME3lY-kNbA if it doesnt open, please try this: https://www.youtube.com/watch?v=lME3lY-kNbA&feature=youtu.be I told the question on youtube video so I share only the code like what I said on video. I hear that video,video,video are you youtuber? no, it needed this […]

Categories
CMS Development Wordpress

Notice: Undefined property: WP_Error::$name

Latest edit: I opened my youtube chanell for error videos They dont be end.If you want to see my killer errors, you can subscribe it Here is the error: https://youtu.be/wAI4QLlpqDY also ı changed the codes so new codes: //adding taxonomy //hook into the init action and call create_book_taxonomies when it fires add_action( ‘init’, […]

Categories
CMS Development Wordpress

show same table content as custom post type ‘show all’ page on another page

I have a basic CPT: function add_news_post_type() { $args = array( ‘public’ => true, ‘label’ => ‘News’, ‘rewrite’ => array(‘slug’ => ‘news’), ‘has_archive’ => true, ‘supports’ => array(‘title’, ‘editor’, ‘thumbnail’, ‘excerpt’), ‘labels’ => array( ‘name’ => ‘News’, ‘add_new_item’ => ‘Add News’, ‘edit_item’ => ‘Edit News’, ‘all_items’ => ‘All News’, ), ); register_post_type(‘news’, $args); // taxonomy […]

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 […]

Categories
Development

WordPress paginations always 404

i have tried so many different pagination options, and always I have got 404 when i press page /2/. Could You guys look at my code, maybe my CPT or Taxonomy doesn’t isn’t correct? Here is my code: // Creating a Custom Post Type function myfunction_custom_post_type() { $labels = array( ‘name’ => __( ‘Realizacje’ ), […]

Categories
CMS Development Wordpress

Tag for custom post type

I have several post type (animal, science, car), I want all these posts type to use the same WordPress default tag. exemple of car post type : // custom post type add_action( ‘init’, ‘create_post_type’ ); function create_post_type() { register_post_type( ‘car’, array( ‘labels’ => array( ‘name’ => __( ‘Car’ ), ‘add_new_item’ => ‘Ajouter une voiture’, ‘edit_item’ […]