You should be able to exclude posts with a specific format using WP_Query’s tax_query
parameter.
Eg.
$q_args = array(
'posts_per_page' => 1,
'tax_query' => array(
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => array( 'post-format-link' ),
'operator' => 'NOT IN'
)
)
);
$featured->query( $q_args );
Untested, but should do the trick..
Related Posts:
- Filter image and text from post format
- Remove posts_orderby filter then add it back in
- WP Dashboard -> Posts-> Filter by Category -> Form Method Change : Which Hook
- posts_results filter function memory errors
- How do I add a class to all sidebars to let a Google Custom Search Engine know not to index the content?
- Show child theme for users on specific IP
- How to replace all images in all posts and pages with a different size?
- How to use the filter ‘widget_text’ to a particular text widget with id
- How to filter posts in admin by before date or by post status ‘future’?
- Using Filters To Change Page Title
- Remove action added from class
- The title of an attachment is not working
- Removing a line from a WP core function (comment_template.php) – filter or other technique?
- Filter for wp_embed_handler_youtube not working
- filter wptexturize doesn’t work on old posts titles
- Post Type Upload Directory – {post_type}_upload_dir filter
- How to remove a filter that is an anonymous object?
- Custom search fields and AJAX support
- is_page_template() doesn’t work with excerpt_length filter
- remove_action conditionally for Custom Post Type – not working
- Custom xmlrpc request does not pass parameters?
- add_filter not adding the filter
- Adding to an array & passing it through do_action/apply_filters
- An archive page without post format (just standard post)
- wp.getPosts with status = ‘trash’ using node.js
- How to add a class to Buddypress avatars in the Activity stream? [closed]
- using posts_where for meta data on pre_get_posts
- Keep post format class with isotope filter
- Hook into ‘when user logs in’ [persistent login]
- Filter on widget-title does not work with custom links
- Hide H1 Title using the_title filter
- Can’t get content of all (19) posts – Incomplete Chunked Encoding
- Admin filter/error if post title is too long
- Is it possible to include the add_filter() function within a shortcode function
- Custom registration field to SQL database
- Activate short codes for all post queries?
- Save something to global var in add_filter
- Problem with shortcodes in external file
- WordPress URL rewrite problem
- wp_get_attachment_link filter not working
- Add class to all parent elements inside the_content
- Updating User Profile on Registration
- Is this correct usage of filters in WordPress [closed]
- How would I remove an inline googleAPI font script in the the parent theme header.php?
- Loading a sidebar on an Ajax call
- the_excerpt() does not work with has_excerpt()?
- Buddypress Group Activity Loop Filter activity type [closed]
- Is there a way to overwrite a filter used in canonical.php?
- Suppress the_content filter in a nested loop
- get_posts and wp_autop (remove filter)
- can’t output gray scaled image I’ve created using add_image_size
- Customize register form page with add_action or apply_filter
- filter on the_content stopped working when I updated to WP 3.6.1
- Replace Paid Shipping Method With Free Shipping Method WooCommerce [duplicate]
- get_the_excerpt on mobile still displays continue reading
- How to reset/remove added filters ‘posts_join’ and ‘posts_orderby’ after the loop is completed?
- Wrapping Featured Image on Add/Edit Page in div?
- remove_filter excerpt_more from a plugin class
- Date filter for post query not filtering results when variable outside the function
- How do I remove certain HTML elements with specific classes from the feed?
- Passing variable from filter
- How to turn this customized core function into a filter/action in functions.php?
- Turn wp_tag_cloud into a front-end filter
- Custom excerpt_more filter not working when tag is present
- Adding an orderby filter, casting postmeta with multiple keys
- How we make the filter for fornt end user
- Identify admin/logout and more filters
- Add Default WordPress Formatting To Data From External SQL Tables?
- Sanitizing a custom query’s clauses
- How can I display wp_link_pages before a shortcode, if it is used, or display after content?
- Clean/filter HTML inserted to post content by XML RPC
- Filter and Search
- How to separate a specific page’s comments from other comments
- Custom single.php files for different post formats
- What is the scope and persistence of add_filter() and remove_filter()?
- how to localize the number of wordpress post views?
- Which hook should be used in this case?
- confusion with add_filter
- Way of getting queried loop before the query with a filter hook?
- add_filter with specific thumb names
- post->post_content filter
- Override typo in multiple parent theme files?
- Add HTML to Page Content
- Categorize posts on a page o the basis of category of other post on the same page
- How properly write function to filter content in a template for plugin “multiple content blocks”
- Filter dashboard custom post listing by user
- Taxonomy search filters
- Joining tables not working in the post editor page
- Help with add_filter(‘the_content’, ‘some_function’) and multiple matches
- How to create a list of terms who’s posts also have a predefined external term?
- Is it possible to make get variable out of filter in Class?
- Getting entry ID from frm_email_message filter in formidable
- Replace image scr with it’s surrounding href
- GET form action. Redirect to self
- Exclude post formats in custom loop
- How do I filter a custom post type loop by a field?
- Filter posts by multiple checkbox categories
- manage_users_custom_columns filter not firing callback functions
- ACF Load Field Groups Programmatically [closed]
- Conditionally including JS based on whether ACF field is set [closed]