use the live preview feature in the plugin
use the live preview feature in the plugin
use the live preview feature in the plugin
how do you display content from custom post type 2 on a single for custom post type 1 that has an ACF relationship?
Actually, for what you are trying to do, you do not need to manually add a new rewrite tag or rule. If you want to change the permalink structure of a custom post type, then use the rewrite parameter for register_post_type() and set the rewrite slug to your preferred permalink structure, like so: $args = … Read more
next_post_link() – how to add url parameter
Visual Composer See documentation regarding Post Grid Element in Visual Composer. https://help.visualcomposer.com/docs/how-tos/how-to-add-category-filters-to-the-post-grid-elements/ Block-based Themes Instead of disabling unwanted categories, the standard approach is to select the category you want to display in a query loop block. See this link from the documentation on how to filter by taxonomy https://wordpress.org/documentation/article/query-loop-block/#filters
I decided to do what I suggested at the end of the post: public => false in the taxonomy settings Add add_rewrite_tag/add_rewrite_rule to ‘unit_num’ and add a pre_get_posts action to tweak the query when get_query_parm(‘unit_num’) is set. This is all working well now. (Often when you write a problem out on a forum it triggers … Read more
Try this in your functions.php file: add_action(‘save_post’, ‘wpb_autogenerate_events_title’, 10, 3); function wpb_autogenerate_events_title($post_id, $post, $update) { // Check if it’s the ‘events’ CPT and if the title is empty. if (‘events’ !== $post->post_type || !empty($post->post_title)) { return; } // Fetch terms from ‘category’ and ‘nameselection’ taxonomies. $category_term = wp_get_post_terms($post_id, ‘category’, [‘fields’ => ‘names’]); $nameselection_term = wp_get_post_terms($post_id, … Read more
Do the old urls still work after enabling “pretty” permalinks? Only your cpt and taxonomies for it don’t work but the rest of the site does? Flush Rewrite Rules: WordPress uses rewrite rules to handle permalinks. Sometimes, these rules do not recognize new custom post types or taxonomies until they are flushed. You can flush … Read more
Block Validation Error
Problem with subdomain with multisite