WordPress.org

Ready to get started?Download WordPress

Forums

plugin relevanssi hot to get only post-format-video posts ? (1 post)

  1. atlantictv
    Member
    Posted 2 years ago #

    hi,

    i use yhe last WP and Relevanssi plugin with wp-post-format plugin and option tree.

    i want to show in the search onlmy the video format posts so i try to use "exclude_from_search" in relevansi.php but i don't have what i need.

    if someone now how to include a query in relevanssi plugin like this :

    <?php  $videos = get_posts( array(
        'tax_query' => array(
            array(
              'taxonomy' => 'post_format',
              'field'    => 'slug',
              'terms'    => array( 'post-format-video' ),
              'operator' => 'NOT IN'
            )
        )
    ) );
    ?>

    thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic