WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] dropdown list (3 posts)

  1. glazzaroni
    Member
    Posted 7 months ago #

    Hello, I want to include in a page all categories but that appears in dropdown list per category. Is it possible?

    Thank you, best regards.

    http://wordpress.org/plugins/display-posts-shortcode/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 5 months ago #

    I'm sorry, but this is not possible using my plugin.

  3. MattWilby
    Member
    Posted 3 months ago #

    Just come across this post and had a thought (as i was trying to do this myself) could you not use this method to be able to select which category is displayed on the page?

    dropdown menu gives variable
    get variable and pass into php
    php if statement based on variable - each if linked to a different version of this code you suggested in a different forum reply

    <?php
    
    echo do_shortcode( '[display_posts category="CATEGORY1"]' );
    
    $my_output = '[display_posts]';
    echo apply_filters( 'do_shortcode', $my_output );

    let me know if you think it could work

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.