Combine Categories & Custom Taxonomy

For following post type and taxonomy: /** * Register restaurant post type */ function wpse_287682_register_restaurant_post_type() { $labels = array( ‘name’ => __( ‘Restaurants’ ), ‘singular_name’ => __( ‘Restaurant’ ), ‘add_new’ => __( ‘Add new’ ), ‘add_new_item’ => __( ‘Add new’ ), ‘edit_item’ => __( ‘Edit’ ), ‘new_item’ => __( ‘New’ ), ‘view_item’ => __( ‘View’ … Read more

Creating a dynamic URL for an external link inside content

This sounds like a perfect use case for Google Tagmanger Event tracking and google analytics Goals. I would refer you to https://support.google.com/analytics/answer/6164470?hl=en You can make events happen conditionally via URL or actual interaction with page elements via class or ID. Analytics goals will allow you easily track the outcomes in GA.

Multiple values in WP_Query : category__and

I’m little unclear from your question if the criteria has to match the Product AND the Service .. or the Product OR the Service. You can change the ‘relation’ parameter to achieve this (AND or OR) $args = array( ‘posts_per_page’ => -1, ‘cat’ => 7, ‘meta_query’ => array( ‘relation’ => ‘AND’, array( ‘key’ => ‘product_customfield’, … Read more

My posts page is missing the page title

The display of ‘things’ on your blog page is usually dependent on the theme. You can verify this by switching to one of the ‘twenty’ default themes and redisplay the page. If the title appears, then you have verified that the problem is a theme problem. If you verify a problem with the theme, then … Read more

Query Posts to display all posts with category “custom field value”

If you are creating artists as categories then their single page template will be category.php , in category.php add the following code :- $category_id = get_cat_id( single_cat_title(“”,false) ); $cat_name = get_cat_name($category_id); $new=query_posts(‘post_type=news_album&cat=”.$category_id.”&post_status=publish&orderby=ID&order=DESC&posts_per_page=-1’); if( have_posts()) : while(have_posts()) : the_post(); echo get_the_title($post->ID); echo get_the_content($post->ID); endwhile; else: echo “No posts added for this category!”; endif; wp_reset_query();