Number of Posts Per Page


Author Message
Grimpond

Posted: 1/13/2013
Quote message 

I have a new Art4 template and despite setting 10 posts per page in the WP settings, the template only shows 2 posts per page


I can not find a place to change this in Art4


Any help appreciated


G
 
Zach

Posted: 1/13/2013
Quote message 

If you to to appearance->theme options from within your dashboard, try editing the posts per page there and see if that fixes it.

Good luck!

=========================
Zach Swinehart

www.artisteertutorial.com

Learn how to easily create beautiful websites in Artisteer with my free step-by-step video course!
 
fmonteiro

Posted: 2/13/2013
Quote message 

I'm having the same problem. My Art4 generated template dows show only 2 posts per page.

On appearance->theme options I tried every value from 5 to 20, the template ignores it and shows always two posts.

Changing to other themes works, it seems that they don't ignore this field.
 
Jeff

Posted: 5/22/2013
Quote message 

This is still a problem.
Any plans for this to be fixed soon?

It seems like it would be a very frustrating problem if you build a theme with Artisteer and then can only have two posts show up on a page, despite what parameters will fill in in the theme options section.

Does anyone know a work around to this, perhaps with a direct edit of the css file?


 
speedyp

Posted: 5/22/2013
Quote message 

Using v4.1 I just checked this and it works fine on my theme.

In wordpress admin, go to settings / reading
Where it says "show blog pages at most" type any number you require.

If you want to show 6 posts per page, add. 6. You'd have to actually have at least 6 posts for it to work though. Obviously?.... :-)
 
Unglood

Posted: 7/3/2013
Quote message 

Quote Zach:

If you to to appearance->theme options from within your dashboard, try editing the posts per page there and see if that fixes it.

Good luck!



Artisteer Ver. 4.1.0.60046 Standard

- NO option in appearance->theme options to change "posts per page"

- wp settings-->reading posts set to whatever makes no diff.

- defualt wp 2012 template works as expected..
 
2ninerniner2

Posted: 7/4/2013
Quote message 

Just tried on a WP site with enough posts and yep, whatever I set in Settings > Reading are the number that show up.

A4.1 and WP 3.5.2
 
Unglood

Posted: 7/4/2013
Quote message 

The issue with this is that if the original Blog Page was exported with more than 1 row then the fail happens. See screenshot below for details.



Re-exporting the template - without content - is a proposed solution to the problem. And, it solves the problem. But...

If you have since done most of your customizations from within the WP admin panel then there are other issues that arise!

Apparently there are more than a couple of .php files that determine the number of posts per page and therefore just replacing a couple of .php files is not an option. So I'm told...

:(
 
Wanderer

Posted: 8/16/2013
Quote message 

I have this same issue with 4.2 and did not export with content. Still a problem.
 
Unglood

Posted: 8/16/2013
Quote message 

it's not the "with content" that is the problem. It is the Artisteer Post Page Template itself - as in the picture above.

So, it will be a Fail whether it is exported with or without content.
 
Sarah

Posted: 8/27/2013
Quote message 

Hi!
I thought I'd give you a solution that just worked for me when you have several rows of blog posts.Mine are floating next to each other, two at a time.

1. Go to the settings-readings and change to the amount you need.
2. Go to Appearance > Editor > home.php

If yours looks like mine, then there will be sections with this:

<div class="art-content-layout">     <div class="art-content-layout-row">     <div class="art-layout-cell post-layout-item-0" style="width: 50%" >         <?php theme_get_next_post(); ?>     </div><div class="art-layout-cell post-layout-item-0" style="width: 50%" >         <?php theme_get_next_post(); ?>     </div>     </div> </div>


Just copy that section and paste underneath several times until you have the specified amount that you put in the Readings settings. What you want to count is the amount of "theme_get_next_post".

4. Go to the file called "theme functions" and look/search for this code:
function theme_pre_get_posts($q) { 	global $wp_the_query; 	if ($wp_the_query !== $q || !$q->is_home) 		return; 	$q->set( 'posts_per_page', 15); }

As you can see, mine is set to 15, because that's how many I want to show per page before the page navigation shows up.

5. You're done! It should work now.

Regards Sarah
 
wonderme

Posted: 9/10/2015
Quote message 

OMG, Sarah, you're genius. I've been searching for this for many days and finally I found your post. Thanks so much! O:)