Editor role isn’t seeing specific post type posts with only post_type parameter

What you need to do is to make custom user meta fields. Links these metafields to a custom category linked to your custom post type. Use this code for a checkbox feeling: <input type=”checkbox” id=”category-<?php echo $post_type->term_id ?>” <?php if($user_cats[0] && in_array( $post_type->term_id, $user_cats[0] )) echo ‘checked=checked’;?> name=”categories[]” value=”<?php echo $post_type->term_id;?>”/> Every custom category you … Read more

Dynamically Create Posts Via XML File

Yes. From your description, it appears that all of the requirements to automate this process are in place. The data is provided via XML which can be parsed with PHP to the necessary title, body, meta components. [search] WordPress supports programmatic post insert/delete/edit functions so that part is fairly simple. [WP Codex] Now you just … Read more

Include post_date in search

I was able to receive the solution from the developer. Add the below code into functions.php and then rebuild the Relvanssi index. This worked for me. function rlv_index_post_date( $content, $post ) { $date = get_the_time( “F Y”, $post->ID ); $content .= ” $date”; return $content; } add_filter( ‘relevanssi_content_to_index’, ‘rlv_index_post_date’, 10, 2 );

Add dynamic color to each category item

You are getting the color for one category (term is more appropriate though) $the_category_id = $category[0]->cat_ID; instead of checking the ID and Color for each term, that’s why it’s applying the same to all. Try this (untested): <?php $categories = get_the_category(); $sep = ”; foreach ($categories as $cat) { $the_category_id = $cat->term_id; if(function_exists(‘rl_color’)){ $rl_category_color = … Read more

Point to a page when there is no results

Using “get_template_part()” has very specific formatting requirements. https://developer.wordpress.org/reference/functions/get_template_part/ To alter your example: get_template_part( ‘template-parts/content’, ‘page’ ); would work, if your .php file was located at “template-parts/content-page.php”

Adding post date to ACF field

You can use the get_the_time() to get the post time . <?php get_the_time( $format, $featured_post->ID ); ?> See the tutorial https://codex.wordpress.org/Function_Reference/get_the_time