WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] Want to hide posts from post page ; ) (5 posts)

  1. macfocus
    Member
    Posted 1 year ago #

    Hi,

    First, I really like the plug-in.
    I am trying to use this plugin for 2 purposes.
    1. showing posts on a specific page
    2. hiding all posts form the posts page (which is "Home" in this case)

    Normally this can easily be done with standard WP functions, but I use WooCommerce with a WooTheme (artificer). This forces me to use the basic WP settings for page assignment, otherwise the theme/plug-in won't show as designed.

    Purpose "1" is working fine with the plug-in

    But number 2 is more difficult. There is no way in the WP back-end to edit the "Home" page since it is the standard page. I was trying to be smart and thought of putting a short code in there with a non-existing category or something like that. But since the page is not shown in the "Pages" section, nothing to change there...

    So I should likely edit some file somewhere.

    Question is which one, and what should I put where?

    Thanks in advance for any insight.

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

  2. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    I think what you're trying to do is:
    a) remove all posts from showing up on the homepage; or,
    b) be able to use the Display Posts Shortcode on the homepage

    Both have the same solution. Go to Pages > Add New, and create a page called Home (or whatever you like). Then go to Settings > Reading, and select "use a static page on the front page". For the front page, select the page you created

  3. macfocus
    Member
    Posted 1 year ago #

    Hi Bill,

    Thank you for your reply.

    You are almost right, and you're idea was the obvious one I already tried.

    Let me refrase my goals:
    a. I want to hide all posts from my home page
    b. I want to show them on another page.

    Sounds simple, but:

    As for as I can see my plug-in or theme (am not sure which, assume plug-in) needs the basic WP setting " Settings -> Reading -> select "your latest posts"".
    If I do not use this settings I will not get all functionality from my plug-in (or theme)
    That's the reason your idea wil not work.

    So:
    Is this plug-in capable of hiding all posts from the page with is assigned to show "your latest posts"?

    And secondly: can I use it to show the posts somewhere else (assume so, that's what it's for) ; )

    http://www.jassie.nl/woo

  4. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    No, this plugin will not help you in turning off the display of posts on your main page. All it lets you do is create listings of posts on other pages using a shortcode.

    The best approach for what you're trying to do is probably using the pre_get_posts hook to modify the main query on the homepage. Here's a tutorial. Actually writing the code to solve your issue is beyond the free support I offer in these forums.

  5. macfocus
    Member
    Posted 1 year ago #

    Hi Bill,

    Thanks again for you time.

    I fully understand your line about the free support, no problem at all.
    For now I can solve this by simply using a page. If and when the shop will really take off, I can look into it further.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic