In my opinion, you should use wp-query. Using a sidebar for this purpose will yield problems in the long term.
-
SEO: Sidebars are taken as “aside” content, which is considered less relevant content by search engines.
-
Editor: The editors for the sidebars are much worse than post editors.
-
Reliability: Any change to containers added in function will reset all content and setup.
-
Scalability: More functions available to work with on post.
Related Posts:
- How To Remove/hide some specific categories from two different categories widget from sidebar
- Create A Loop With A Variable Number of Posts For Each Bootstrap Row?
- Can you target a widget_class in a register_sidebar?
- 2 wordpress loops showing 1 post from same post type – how to avoid showing the same post?
- Continue or break the while loop
- Hiding carousel indicators if there’s only one post
- WordPress Queries Not Working?
- Multiple loops breaking side bar
- Bootstrap grid while loop
- WordPress Carousel with recive posts (Bootstrap)
- Carousel slider with WP_Query to show 3 posts on each slide
- Display post format post in the sidebar
- Can wp_query return posts meta in a single request?
- Broken? WP_Query and “attachment” as a post type
- Order by DESC, ASC in custom WP_Query
- Exclude or Include category ids in WP_Query
- Secondary Sort (fallback) for WP_Query
- Changing the meta_query of the main query based on custom query_vars and using pre_get_posts
- Query Posts in a Predefined Order
- How to paginate attachments in a secondary query as gallery?
- How to stop wordpress to make the default query?
- dynamic_sidebar not rendering sidebar
- How to make an activities stream mixing posts and comments?
- WP_Query based on URL parameters
- Order by meta_value_num DESC and meta_value ASC on WP 4.0
- Order posts ascending with number in title
- How can I style future post?
- List taxonomy terms plus their latest post ordered by post date
- using wp_query to return posts w/ comment count > 0
- Order by meta_key in custom post type doesn’t affect the query
- Is there a PHP function that can match anything after the given URL, so my IF statement will work in each instance?
- Add a default meta_value to new posts
- WP query exclude post within the last month / only show over 1 month old
- WordPress query for most recent posts from multiple categories
- Too many posts cause slow load when paginating
- Order Posts by meta value AND published date
- Pass array of taxonomy terms to wp_query
- Comparing dates in custom field
- List of the years with posts presented
- Query custom post type by custom taxonomy (category slug)
- Advanced Taxonomy Queries WordPress
- Getting post revision and printing them on the post content site
- Editing the default wordpress search
- Slow page loads due to WordPress Core Query
- wp_query for multiple cities (multiple values in a metabox)
- Adding column to wp_posts table or join wp_posts table with another table
- get posts by meta_key from inside key of post meta
- Help optimizing slow WP_Query with meta_query
- Pre-Populate $wp_query settings with custom rewrite rules and custom template_redirect
- exclude a post from wp_query loop
- Is_single() conditional tag returns null in query
- Is it possible to query a custom field where the value is between two fields?
- WP_Query args to show posts from specific custom taxonomy
- How to query woocommerce product by pricing? [closed]
- Can I modify a WP_Query instance or clone it with modifications?
- filter wp_query result with custom field values
- Posts in loop all show the same author when there are many authors
- Show a 404 error page if Public query variable’s value doesn’t exist?
- WP_Query within function within WP_Query
- If have posts a week old, display, else display a different loop
- All blog data on a page using custom query gives 404 for page 2 and onward
- Daily drip of posts – based on user ‘startData’ – ordered oldest to newest
- How to add tax_query to $args with concatenation
- Where is the extra SQL fields coming from?
- construct complex queries with WP User Query
- How do I fit WP_Query arguments into a function?
- Create one-use post dynamically, add to main query, do not insert post (user profile view)
- Does query_posts have an effect on get_the_category?
- Why always one post missing
- Is there ANYTHING about this query that’s incompatible with WordPress 2.9.2?
- get all images from the wordpress media library with link to the post they are associated with
- adding pagination to a foreach loop in wordpress
- Add metabox if there is at least one post available
- WP Query – grouping posts by same meta key, adding together values from another key
- setting offset to category number in archive page
- Retrieve all custom field values of a specific custom field metakey as an array, inside WP_Query
- Pass post ID to JavaScript outside the loop
- Query for current post
- Access queried post ID in WP_Query
- Loop through array of pages
- Query Posts | Combining multiple form inputs into query arguments to generate one filter result
- Filtering posts for unique titles, only the most recent
- How to show post title in content editor in backend?
- How do I hide submenus from the top menu bar?
- List users by Year of Birth using a foreach loop to dynamically populate years and data
- What is the best way to reset a search on a meta_key / meta_value?
- View related categories in order of posts
- query only returning posts with already set custom field
- Wrote a WP Cron Plugin and it triggers a fatal error upon activation
- Add pagination to table generated by wp_query
- Adding a Theme Customizer Control for Posts_Per_Page
- using next-page and previous page inside a wp_query
- Custom query from all posts & all child page from one parent page?
- wp_query conditionally get posts
- Getting Year & Date inside wpdb [duplicate]
- restrict posts per page
- the_excerpt() not working in custom archive
- Get posts by meta value except one post [closed]
- WordPress extremely slow when using get_posts with multiple meta_query relations
- Search results stuck on page 1