• 0
Sign in to follow this  
Followers 0

Showing one post on the home page

Question

Posted · Report post

I have set to show only 1 post per page in the reading setting I still see 2 posts when I visit my site How to restore to 1 post per page

Share this post


Link to post
Share on other sites

9 answers to this question

  • 0

Posted · Report post

Did this suddenly start happening or has this been occurring since you started building your site? Try activating another theme on your site (like Twenty Eleven) to see if the problem persists. If it does, then I don't think it's related to the PageLines Lite theme. Also, it is strange because I go to your previous posts and there is only one post showing per page.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

It happen on the home page only and I can add in some script. But I cannot add this script or where can I add them? 1. Go to Appearance??“> Editor, and from the right side menu, open the Main Index template. This could also be named Homepage. 2. At the top of the file, locate the following line of code: 3. Directly above that code, paste the following snippet: $sticky, 'caller_get_posts' => 1 ) ); ?>

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I'm slightly confused as to what you're trying to achieve. In addition to solving the 2-post issue, you'd like to add this code?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I am sorry that I confused you. I am adding this code to get the 1 post issue in other theme that I am using. Do not know where to add these in the pagelines template?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi, You add this code to your functions.php file. If you're going to be adding custom code like this, I recommend you use either the PageLines Framework Base Child theme or the PageLines Customisation plug-in both available from the Store. Adding custom code to PageLines Framework functions.php will most likely break your website. However, adding your code to the base child theme or the customisation plug-in will not break you website. Base Child Theme (For Developers to create new child themes). Download and Activate Instructions: To get the Base child theme, login to your Wordpress Admin Dashboard --> PageLines --> Store --> Themes --> Add Themes --> Top Free --> Base Theme --> Install Pagelines Customize Plug-in (This contains style.css and functions.php, just like a child theme.) Download and Activate Instructions: To get the Pagelines Customize Plugin, login to your Wordpress Admin Dashboard --> PageLines --> Store --> Plug-ins --> Add Plug-ins --> Top Free --> Pagelines Customize Plugin --> Install--> Activate. Once activated you can find the style.css and functions.php files in: wp-content/plugins/pagelines-customize/

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I have install the base theme, Where can I go to paste these codes I want to include in? I have the following error when I used the pagelines customize plugin "Parse error: syntax error, unexpected '}' in /home/buybaths/public_html/wp-content/plugins/pagelines-customize/functions.php on line 55" how do I resolve that

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi, Did you add some custom to the functions.php file from PageLines Customisation plug-in ? If so simply remove any custom code (you can do this via FTP client) and once removed the error should be gone.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yes, I have restored my site by removing the plug in. So is this a way to show only one post on my home page? Currently it is showing two posts on my main domain http://buybathsaltsonlines.com/ which my visitors land most of the time? If there is a solution, what should I do

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

If the two posts are still showing on your main domain, removing the plugin wasn't the solution. Were there any customizations you made to any files?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0