How to display articles based on composed tag

Thanks to a similar topic I can do it with : $tag = get_queried_object(); $tag_slug = $tag->slug; Or with this snippet : $current_tag = single_term_title(“”, false); tag_slug = str_replace(‘ ‘, ‘-‘, $current_tag);

Ajax object comes back empty

This stackoverflow answer has a good example of basic ajax posting. https://stackoverflow.com/questions/5004233/jquery-ajax-post-example I would try adjusting your code so that the info you want to post is in the data parameter. jQuery isn’t my strongest suit, but I was under the impression that the $_POST data came through that parameter. $(‘.walkthrough-list’).find(‘a’).each(function() { $(this).click(function() { data=”p=”+p_name+&uid=’+user_meta.current_user_id+’&tut_name=”+clicked_post; … Read more

get all page templates

Only the page post type can have a template assigned (of the default post types), it’s the custom template you set in the Page Attributes meta box. If you have a page.php template file, your index.php will only be used to display post post types, so those posts will never have a _wp_page_template meta key. … Read more

How to apply order on custom taxonomy and custom meta key on custom post type

I think the simplest way would be to run the loop for each status and only output posts that match the current status: $statuses = array( ‘Active’, ‘Pending’, ‘Sold’ ); foreach( $statuses as $status ): echo $status; while( have_posts() ): the_post(); if( has_term( $status, ‘vr_listing_status’ ) ): the_title(); endif; endwhile; rewind_posts(); endforeach; A couple of … Read more

Convert usernames listed by the Groups plugin shortcode to displayed names?

Bellow is the adapted function (by 24 rows shorter than the original), as was suggested by the commenters (many thanks!). It will work only if the Groups plugin was installed and activated. add_shortcode( ‘groups_group_info’, ‘groups_group_info’ ); function groups_group_info( $atts, $content = null ) { global $wpdb; $output = “”; $options = shortcode_atts( array( ‘group’ => … Read more

Featured Images not appearing

All your issues could be solved with some MySQL queries. Regarding point #1: if you are using mod_rewrite then I recommend using absolute URLs for images in posts, if you are displaying full post content (including its images) on other pages – as you suggest. You can do a MySQL search/replace as follows: UPDATE wp_posts … Read more