Forums

[resolved] hide miniposts from articles-listing (3 posts)

  1. Maiskolben
    Member
    Posted 2 years ago #

    Hey Dudes,
    I would like to hide the post that I've generated with the miniposts2 plugin from my artcles listing. Is that possible? The plugin comes with a function called "hide from the loop", but the widget isn't inside the loop at all...

    So my question, anybody know the plugin and would like to tell me how I can get this working?

    Bye,

    Maiskolben

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    If you are talking about this plugin: http://wordpress.org/extend/plugins/miniposts/

    Then you should be able to use is_mini_post() in your loop to hide those posts.
    Typically, after this:

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    you would put:

    // if is not a mini post then display the post
    if (! is_mini_post() ) {
    
    // your existing post display code here
    
    }
  3. Maiskolben
    Member
    Posted 2 years ago #

    Hey thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic