WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] post_filter parameter (8 posts)

  1. cubalibre1
    Member
    Posted 3 years ago #

    I have several posts with the same title and different category. I would like to get a list of all posts of category "myCat" and title "MyTitle".

    [display-posts category="myCat" posts_title="MyTitle"] not works.

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

  2. cubalibre1
    Member
    Posted 3 years ago #

    [display-posts category="myCat" post_title="MyTitle"] not works.

  3. Bill Erickson
    Member
    Plugin Author

    Posted 3 years ago #

    I'm sorry, but this isn't a supported feature by the shortcode OR WordPress. If you look here ( http://codex.wordpress.org/Class_Reference/WP_Query ) you'll see the full list of ways posts can be queried. The shortcode has a subset of these, listed on the shortcode page.

    I don't know your specific use-case but in general it's a bad idea to give several posts the same name. I'd recommend using a category (or a custom taxonomy) with the same name to link these and keep the titles themselves different.

  4. cubalibre1
    Member
    Posted 3 years ago #

    Yes,
    I have some posts of artists exhibitions and publications, and who have a biography. That's why I made ​​a post for the exibition, a post for artist publications and a post for the artist biography.
    Now I have changed the name of the post and put in the name a br tag to split the name into 2 parts (for my theme is better).
    For example on the post title I have now:

    Bill Erickson  <br> exhibition of 12 July 2011
    Bill Erickson  <br> Biography
    Bill Erickson  <br> publications

    The tag br is incorrect in a post title?

  5. cubalibre1
    Member
    Posted 3 years ago #


  6. cubalibre1
    Member
    Posted 3 years ago #


  7. Bill Erickson
    Member
    Plugin Author

    Posted 3 years ago #

    This is bit beyond the scope of this plugin support.

    I recommend having a single post for each artist and have all the other information either be metadata ( http://www.billerickson.net/wordpress-metaboxes/ ) or another post type that's linked to this one ( http://wordpress.org/extend/plugins/posts-to-posts/ )

  8. cubalibre1
    Member
    Posted 3 years ago #

    I solve the problem. Thanks you for your support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic