You made a mistake in the syntax:
if ($featured_articles > have_posts()):
while ($featured_articles > have_posts()) : $featured_articles->the_post();
in the if
and while
conditions should be ->
instead >
.
Related Posts:
- How to add custom content template part for a custom post type on main query using a plugin
- Accessing download link from the loop with WP Download Manager Pro
- Can I assign a template to a custom post type?
- Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu
- Get custom post_type’s archive URL
- single-{$post_type}-{slug}.php for custom post types
- Create a custom archive page for a custom post type in a plugin
- Media library – Limit images to custom post type
- Searching multiple custom post types and pages
- display different template based on post type
- How to Add Custom Taxonomy To Woocommerce Plugin
- Is it possible to define a template for a custom post type within a plugin independent of the active theme?
- Taxonomy, Terms, and Template Files
- previous_post_link() and next_post_link() with a custom post type?
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Development of a WordPress Search Plugin – Best Practices
- Prevent trash/delete action on specific post types
- tag.php doesn’t work with tags on a custom post type post?
- Setting a custom sub-path for blog without using pages?
- Custom Post Types 404 Issue
- Assign single template to multiple custom post types?
- Change capability type of post type registered by plugin
- Template for specific post of custom post type
- Add Content to Page without shortcodes
- How do I display two separate taxonomy archives for two post types that share a single taxonomy?
- Loading custom page template via plugin
- Multiple Single Post templates
- Creating a default Custom Post Template that a Theme can override
- How to set a fall back template for a custom post type in a plugin?
- Rewriting ‘rewrite’ slug for custom post type used by plugin
- Templates for Custom Post Types and Custom Taxonomies
- Using Templates with Custom Post Type UI
- Get page by template?
- echo value from ‘select’ field type into page template using cmb2?
- register_taxonomy with multiple object type and update_count_callback
- Custom taxonomy query for a custom post type
- Apply template to custom post type
- Page is defaulting to archive page and not designated template
- How often do you need to register_post_type?
- How to quickly switch custom post type singular template?
- How to list/show all custom post types regardless of category?
- Custom Post Type Archive URL takes over page URL
- post_type_link filter causes 404 on the CPT page it’s used on
- How to use a dedicated template for the Custom Post Type from a plugin?
- Need some templating advice for templating with custom post types and taxonomies
- How to query custom posts using a dynamic category
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- Using Custom Templates for Custom Post Types for the Genesis Theme Framework?
- Custom Post Type with Nested Taxonomy and Template Files
- Custom Post Type Archive Template
- Custom templates for posts like for pages: page-{id} vs single-{id}
- Posts in Multiple Columns and Rows with one single loop
- Include images from pages in wp search.php results in default wp search
- Separating Search Results By Post Type
- Create Pages from Database
- List events by month
- Date query for a custom meta field
- Custom page type – template under page attributes?
- Template tags to display custom post type posts in category template?
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- How do I create new content pages for my Custom Post Type?
- Display different gutenberg template from selected post attributes
- Clean URL permalink for custom post type
- custom post type archive template per custom taxonomy term
- Change plugin’s has_archive = true to false?
- Getting arguments for register_post_type from a plugin generated post type
- where can I see my custom post type archive template?
- Custom post type loops with different page templates
- Display posts of child category in template
- custom taxonomy – Template not working
- Template for custom post type shows all posts instead of just one
- update a post meta from a single table cell TablePress
- update custom post type meta from a shortcode
- Remove POST_TYPE from custom post type permalink
- Query posts between two dates (custom meta keys) CMB2
- How to localize value of posts
- Include different loop templates in search query
- Create separate template for shared custom taxonomy with shared terms
- Used with meta_query in query_posts works slowly
- Single page template for custom post_type
- Change upload_dir folder at a certain cpt but cant change back
- How to add post_author column to custom post type
- Trying to manage templates on a blog with lots of custom taxonomies
- How to register custom post types in a plugin?
- Display custom taxonomy as dropdown list
- Custom Post Type Templates?
- Turn query string to sub page
- Remove header and footer but KEEP all css and js etc for a custom post template?
- WordPress Template Hierarchy
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page
- wordpress 3.4 template files in subdirectories
- Pagination Issue: Custom Post Type In Index
- How to append element after thumbnail
- Lock post meta block at the bottom of a custom post type
- Best practice for adding posts in bulk
- Get image URL from media library in input
- Create second custom 404 page for selected post type
- How do I provide a “show all posts” link in a paginated term archive?
- is_page_template not working as expected