Home › Forums › Pro Support › Noob help
- This topic has 9 replies, 2 voices, and was last updated 7 years ago by
Tom.
-
AuthorPosts
-
August 29, 2016 at 7:28 am #611
Aaron
ParticipantI know how to use the plugin on a static page because it’s demonstrated in the video however what about if I want to use the plugin when the front page is the blog roll?
August 29, 2016 at 5:19 pm #612Tom
KeymasterYou would have to use your theme hooks. For example, in GeneratePress we have GP Hooks, so you could do this in the “Inside Content Container” hook:
<?php if ( is_front_page() ) : ?> <?php echo do_shortcode( '[wp_show_posts id="xx"]' ); ?> <?php endif; ?>
August 30, 2016 at 1:31 am #620Aaron
ParticipantThanks it worked perfectly, one more question though, what if I wanted to have both the gallery and post on the same page ? I’m using the blog roll
August 30, 2016 at 10:23 am #625Tom
KeymasterNot too sure what you mean? If you’re adding the shortcode in hooks, you should be able to have whatever you want on the rest of the page (a static page, your blog posts etc..).
August 30, 2016 at 12:27 pm #631Aaron
ParticipantYou’re right I just got confused, I got the post to show how I want using WPSP however I also still have post showing the default way so basically I have duplicate post one with the WPSP layout and another with the layout before I used WPSP.. How Can I get it so only the post layout for WPSP shows instead of both
August 31, 2016 at 12:04 am #642Tom
KeymasterYou mean your regular blog is showing as well?
If you leave the “Posts page” setting blank in “Settings > Reading” then you shouldn’t have a blog.
August 31, 2016 at 9:02 am #656Aaron
ParticipantYes I don’t want the regular blog to show. I tried what you said however I couldn’t leave it blank it said I had to have at least 1 post minimum the reading settings looked like this:
Reading Settings
Front page displays
Front page displays
Your latest postsA static page (select below)
Front page: — Select — Sample Page
Posts page: — Select — Sample PageBlog pages show at most
postsSyndication feeds show the most recent
itemsFor each article in a feed, show
For each article in a feed, show
Full text
SummarySearch Engine Visibility
Search Engine Visibility Discourage search engines from indexing this site
It is up to search engines to honor this request.August 31, 2016 at 10:24 am #659Tom
KeymasterIf you choose “A static page” and choose a page for the front page, you should be able to leave the “Posts page” option blank.
August 31, 2016 at 10:14 pm #667Aaron
ParticipantYou my friend are a genius, your method worked so well that I decided to delete the hooks used for post to display on the front page altogether, because there is no longer a need for them. Now that my front page is technically still the blog page but yet a static page life is a lot easier 🙂
September 1, 2016 at 12:15 am #670Tom
KeymasterThat’s awesome, glad I could help! 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.