Taxonomy shows up twice on Custom Post Type
Taxonomy shows up twice on Custom Post Type
Taxonomy shows up twice on Custom Post Type
search results to show individual ACF fields from inside custom posts
Your can use post_parent parameter for your query. Ref: https://codex.wordpress.org/Class_Reference/WP_Query This will change your query to: $args = array( ‘post_type’ => ‘b_books’, ‘order’ => ‘ASC’, ‘orderby’ => ‘date’, ‘posts_per_page’ => 10, ‘post_parent’ => 0 ); genesis_custom_loop( $args );
I think all you’d need to do is change the WP_Query from $catquery = new WP_Query( ‘cat=” .$category_id. “&posts_per_page=100’ ); to $catquery = new WP_Query( ‘post_type=property&posts_per_page=100′ ); This assumes your new custom post type is registered as “property” (lowercase) – if you registered the new post type using ‘Property’ or ‘properties’ use that instead. UPDATE … Read more
So I tried everything and every plugin to fix my issue and expose the list CPT data instead of showing brackets [ ]. And the answer is something that might be a bug in WordPress Rest API. The problem was I am using custom statuses and none of my posts were assigned as default WordPress … Read more
I have developed functionality which is check duplicate value for specific post meta value exist or not on update post. when user update data and if find any record then give a error message in admin dashboard(see attached screenshot). you can use below code according your requirement. class Check_duplicate_entry { public function __construct(){ add_action( ‘save_post’, … Read more
Why is this function so slow?
I was able to fix it by using this function add_action( ‘series_add_form_fields’, ‘sermon_series_add_details’, 10, 2 ); instead of this: add_action(‘add_meta_boxes’,’add_Book_series_metabox’);
Finally I found the cause of this issue. It was simply because of Polylang plugin. As the plugin adds a taxonomy related to the language of the website to all posts, it adds a LEFT JOIN statement to the search query with a condition WHERE 1=1 AND post has that taxonomy id. As I didn’t … Read more
The problem seems to be link to a jQuery script I did to check things on post saving. I forgot : $postForm.unbind(‘submit’);