Custom archive page for CPT UI
Custom archive page for CPT UI
Custom archive page for CPT UI
Create your own child theme containing a functions.php and style.css so if your third party theme gets updated, you do not loose any work you put into it. In the functions.php enqueue your stylesheet. function enqueue_my_style() { wp_enqueue_style( ‘xtheme-custom’, get_stylesheet_uri() ); } add_action( ‘wp_enqueue_scripts’, ‘enqueue_my_style’ ); In your style.css write down your CSS mark-up of … Read more
Disable closing on metaboxes
Additional section in custom post type permalink
I’m working on something similar at the moment. I’ve decided on using radio buttons or a dropdown to ensure a user has to pick from my taxonomy terms when creating their post. I’m still refinig my solution, but these two articles have helped me a lot: http://themefoundation.com/wordpress-meta-boxes-guide/ I want my metabox to appear in multiple … Read more
pre_get_posts for custom page builder meta box
Your issue is the post_parent parameter, if this is set to 0 or a falsey value like null your query will return all top level posts. So you just have to make sure $rental->post->ID has a value, or use a different approach like the get_the_ID() function. Can’t really tell you more than that as you … Read more
CPTUI and add_rewrite_endpoint will help you get the desired things. [Update] From my comment- You need pairs for rewrite rule /base/1 or base/1/base2/2 using wordpress rewriting… and the way you want will not be that easy depending on wordpress. If you have fixed /custom/continent/country structure then add HTACCESS of your own as site/1/2/3 to yield … Read more
Thanks to bcworkz on wordpress.org (https://wordpress.org/support/topic/custom-title-set-on-quick-edit/#post-8631035) writing : I can’t be 100% sure, but I think it’s because the custom field data is not sent in $_POST with quick edit, so the title ends up being set as an empty field. I think what you need to do is add else code for each custom … Read more
You should use different roles for this groups of users, like CPT-Editor or CPT-Reader. It is much easier to check the role and his capabilities to change on posts. To change this capabilities in the roles use a plugin, like Members, or custom code. The capability for edit, read cpt is different, in dependence of … Read more