From the url you supplied it looks like you are using a custom post type of blog. The most likely reasons you are not seeing the post you want to display is that by default WP_Query
is only set to display posts – see WordPress Codex on WP_Query Post & Page Parameters for more info.
So for your WP_Query to return the post you are after you will need to replace line 2:
$myblogPosts = new WP_Query('cat=5'); // Cat 5 is the blog category.
With something more like this:
$args = array( 'post_type' => 'blog', 'cat'=> 5); // Cat 5 is the blog category.
$myblogPosts = new WP_Query($args);
Related Posts:
- Query posts only with featured image
- In loop: posts have thumbnail AND other variables
- post thumb nail
- Trying to check and see if a post has a featured image outside of the main loop
- Query sticky posts with thumbnails
- Retrieve featured image (thumbnail) url from multiple posts with one query
- Get image of latest post from taxonomies/categories
- Multiple instances of Featured Image Query
- post thumbnail not showing up with shortcode
- How WordPress attaches its Featured Images with posts?
- getting post thumbnail within loop causes an error
- WP_Query condition affects posts_per_page count
- Site not getting correct featured image from my query
- Retrieve posts using thumbnail id as meta key
- WP Query – Post Thumbnail
- How can I check for a thumbnail in WordPress?
- how would i change post->ID to work correctly when querying pages?
- How to display the featured image for each post?
- Query posts only without featured image
- the_post_thumbnail do 2 queries. How to optimize
- Featured images loop for Orbit Slider
- how to put thumbnail below category’s title?
- WP_Query how to add a thumbnail to the first post from the last 5 posts?
- Featured Image as Background with Offset
- Trying to use “Medium” featured image for custom post type on home page
- wp_get_attachment_image not to get the post_thumbnaill
- Display First posts without the default featured image
- Display only posts with thumbnails
- Meta_query compare operator explanation
- Exclude a category if post is only in that category using wp_Query
- Custom query incorrectly returning everything [closed]
- Last post ordered by publish date using WP_Query on front page
- Query certain amount of posts from multiple dates
- Meta Query with date and time on the same Day before given time
- Orderby = none not working [duplicate]
- Add inline HTML to posts published within last 24hrs
- Single page theme
- WP_Query search for whole words
- WordPress pagination link always leads to home page
- Query posts with more than 20 comments
- Including only current user’s posts in search
- How can i simulate “taxonomy__in” in query?
- How do I reset this wp_list_categories query?
- Refine search results using WP_Query
- query_posts: how to show all ‘meta_value’ containing a specific word?
- How to show subcategories using loop?
- Query with a meta value inside a given range
- Pagination of a WP_Query Loop in a child-page page template
- Add condition of user capability in WP_query
- add_filter() depending on search term
- Get all products which have both product category
- Fastest way of counting posts of a custom post type in a specific taxonomy term?
- WP_Query | Tax_Query Relation | Unable to use ‘OR’ as it then allows all products, help me finish my query?
- Why is wp_query causing an uncaught error to is_user_logged_in() not defined?
- Modify wp-query and sort by post meta key
- Check if loop has any categories?
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- get_post_meta in WP_Query
- How to alter local query, not main query [duplicate]
- WP_Query results stored in variables
- infinite loop in wp_query using simple query
- Custom WP_Query id
- How to display the number of posts in a category using WP Query
- wp query for popular post with simple field
- Parent and child categories
- Set post number to single posts
- Specific html within wordpress loop
- How does WP generate the default $query in WP_Query based on the URL?
- Intiger meta value with ‘>=’ returns posts with lower value
- Update query for wp_posts and wp_postmeta
- Grabbing taxonomy terms and inserting them into an array
- custom page with post content using read more
- WP_Query orderby random do not repeat infinite scroll – one loop
- Woocommerce Shortcode which displays a table with product data
- JOIN filter doesn’t work in WP_Query in wp-ajax calls
- get_posts query is taking about 40 seconds to execute
- Customize the Sorting Dropdown in WooCommerce use another list or more page
- WP_Query by MAX post_id?
- Adding nofollow to all the post links in get_posts with pre_get_posts or WP_Query
- WP Query with meta queries
- Query post by Category and custom file (ACF)
- Regarding a custom loop and output HTML tags
- Add to search posts query array with post IDS which will appear first
- Filtering ‘Featured’ posts from a batch of category IDs
- Speed up WP_query with meta comparing dates
- Meta Query if Values Don’t Exist
- Letting wordpress decide what template and page to use based on condition
- How to show all the associated posts with specific date of data metabox?
- wpdb get_results() returns only 2 rows
- Problems with WP_Query, Loop, a condition and Posts per Page
- Search Functionality broken by the wp 4.2 update
- Issue attempting a wp_query_posts with tags
- Filter WP_Query output before it is accessed (pre_get_posts)?
- Divide WP_Query posts by date & post type
- New WordPress WP Query using posts from certain categories
- WP query based on two meta queries
- WordPress website links redirect to homepage
- How do I subquery with custom meta fields?
- Show number of posts AND number on current page (cannot make it work)
- Advanced Search – Is this possible?