Paskadox
Forum Replies Created
-
Oh, you notified people less than 24 hours before the update that rendered forms that relied on expected functionality unusable and removed basic form functionality such as a phone number field! What exceptional customer service!
Forum: Plugins
In reply to: [The Events Calendar] Display Category Description AnywhereMade sort of a breakthrough:
This displays the post ID:
echo get_the_ID();
This displays the description of a specific category (6):
echo category_description( 6 );
All I need to do is get the category ID of the current post and put it in place of the 6. Nothing I try works. Help!
I’m thinking an additional meta_query would do it, but I don’t know how to write it.
Oh no, it’s not missing, just cut off. If someone could give me an example WP_Query that queries all events with a specific event tag, I’d appreciate it!
I’m pretty confused about what this means, and nothing I try works. I want to display all posts tagged “featured”. Surely there must be a simple way to do this? Why doesn’t just adding “tag => ‘featured'” work?
$args = array( 'post_type' => 'event', 'posts_per_page' => 5, 'meta_query' => array( 'key' => '_start_ts', 'value' => current_time('timestamp'), 'compare' => '>=', 'type'=>'numeric' ), 'orderby' => 'meta_value_num', 'order' => 'ASC', 'meta_key' => '_start_ts', 'meta_value' => current_time('timestamp'), 'meta_value_num' => current_time('timestamp'), 'meta_compare' => '>=', 'tax_query' => array( array( 'taxonomy' => 'post_tag', 'field' => 'slug', 'terms' => array( 'featured' ) ) )