Categories
CMS Mastering Development Wordpress

Load info from customposttype into template page

So I have a Custom Post Type called members. to this custom post type, I have ACF linked with a form to make an account In this post type are users made and stored. Now I want to retrieve all members stored inside the post-type and display them inside a template page. the code I […]

Categories
CMS Mastering Development Wordpress

Saving Metadata from the Gutenberg Editor Sidebar to the Database

In the saga so far, you can see my First post/question Second post/question This is my third (and hopefully final) question. I’ve got everything working except for saving the data in the WP database. Incidentally, this tutorial is a goldmine for an understanding of how things work in the new Gutenberg way, and how all […]

Categories
CMS Mastering Development Wordpress

custom post type and hidden url : what is the cleanest way to build CPT with custom page template?

I recently built a website were I needed to let user edit the custom post type archive page with elementor. So I decided to use page templates instead of archive pages, that way,I can build my pages with code (custom loop) and elementor (widgets). But after navigating in my website, I spotted strange behaviours. I’m […]

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

Add custom post type to Backbone collections

I am trying to fetch posts of a custom post type (cpt) with the backbone js client. I registered the cpt with the show_in_rest param set to true. I enqueued the wp-api script. The url http://myweb.com/wp-json/wp/v2/custom works. In the js, this works: wp.api.loadPromise.done( function() { var _posts = new wp.api.collections.Posts(); }); but this does not: […]

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

Remove custom taxonamy slug with pagination

I have added the custom taxonamy for my faq site. I want to remove the default custom taxonamy showing in url for archive page. I have tried some codes, but it’s break my pagination. function my_taxonomies_faqs() { $labels = array( ‘name’ => _x( ‘FAQ Categories’, ‘taxonomy general name’ ), ‘singular_name’ => _x( ‘FAQ Category’, ‘taxonomy […]

Categories
CMS Development Wordpress

CPT tags not showing when editing post

Since Gutenberg I’ve used the plugin “Classic Editor” for one of my websites until I have time to make the necessary adjustments to fully work with the new Gutenberg look. I’m now starting to look at removing the plugin for the website and noticed an issue that I don’t understand. When editing a custom post […]