Sort Events by Venue Title – Sort Post set by related post ids

You can use meta__value in orderby e.g. ‘post_type’ => ‘tribe_events’, ‘posts_per_page’ => -1, ‘meta_query’ => array( ‘relation’ => ‘AND’, ‘event_title’ => array( ‘key’ => ‘post.title’, ), ‘event_id’ => array( ‘key’ => ‘EventVenueID’, ), ), ‘orderby’ => ‘event_title’, Not tested but should work, this was introduced in 4.2 of WP – https://make.wordpress.org/core/2015/03/30/query-improvements-in-wp-4-2-orderby-and-meta_query/

Post & Category Archives URL structure

The issue with your desired structure (and that categories without base are common request but commonly unreliable) is ambiguity. Each rewrite rule is like a tiny program, explaining WP how to turn URL into query variables. It is very important that WP can reliably distinguish which of the rules should handle particular URL. In plain … Read more

Basic PHP question (displaying post title over thumbnail) [closed]

You don’t need php at all to achieve what you are after. This can be done with just css. This shows the title and excerpt by default. .wrap .wp-tiles-byline-fade-in .wp-tiles-tile-with-image .wp-tiles-byline { opacity: 1; } This hides the excerpt again now that we have revealed it. .wrap .wp-tiles-byline-fade-in .wp-tiles-tile-with-image .wp-tiles-byline .wp-tiles-byline-content { opacity: 0; } … Read more

Add Filter to get_next_posts_link

You can indeed add a filter to get_next_posts_link, but it has a different name, namely next_posts_link_attributes Complete code would look like this: add_filter(‘next_posts_link_attributes’, ‘wpse_230552’); function wpse_230552() { return ‘class=”iamclass”‘; }

Display Posts by Categories

Try this code <div class=”container”> <!– Example row of columns –> <div class=”row front-posts”> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <div class=”line2″></div> <?php endwhile; ?> <?php endif; ?> <?php wp_reset_query(); ?> <!– Start latest post –> <div class=”line2″> <?php $paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1; … Read more