3 reputation
3
bio website
location
age
visits member for 2 years, 8 months
seen Dec 19 at 14:09

Dec
2
awarded  Tumbleweed
Nov
25
revised Retina upload image function
corrected spelling
Nov
25
asked Retina upload image function
Feb
11
comment Disable default Wordpress widgets in sidebar
Thanks for the reply. I dont have a hardcoded function, i only use <?php dynamic_sidebar( 'sidebar-main' ); ?>. Could it be that when I activate a clean wordpress installation, and it uses twentyfourteen by default, it copies that theme's default widgets into my theme when I change to my theme under Apparence/Theme?
Feb
11
asked Disable default Wordpress widgets in sidebar
Apr
17
comment Make posts_per_page value the same on all pages
Hi Stephen and thanks for your detailed answer. I fixed all that you mentioned regarding the code. But if I just use the standard WP loop, and set Post per page in WP settings/read to 8, and have 1 sticky post in the db, the first page still shows 9 posts, the rest shows 8.
Apr
16
comment Make posts_per_page value the same on all pages
I would think that this would be a common problem. No one ever stumbled upon this before?
Apr
16
comment Make posts_per_page value the same on all pages
Thanks for your answer. The above code is in the index.php file. And then i use <?php get_template_part( 'loop', 'index' ); ?>to load how the content is shown. I Also have single.php, archive.php, page.php and so on to show a diffrent layout there.
Apr
16
awarded  Scholar
Apr
16
accepted Multiple loops on index page with sticky post and pagination
Apr
15
asked Make posts_per_page value the same on all pages
Apr
15
revised Multiple loops on index page with sticky post and pagination
Updated with the solution from @m0r7if3r
Apr
15
comment Multiple loops on index page with sticky post and pagination
@m0r7if3r Ok, I got the sticky post to show up on only the first page with this code: if( $paged != True ) But that makes the first page have 1 more post then the rest of the pages. Is there a solution to this? Cause I use a icon for the post, so its important for the layout with only 8 posts per page.
Apr
15
comment Multiple loops on index page with sticky post and pagination
@m0r7if3r No the non-sticky post query uses 'post__not_in' => get_option('sticky_posts'), so that work as it is supposed to. But if you look at the code, the sticky post query loads every time, cause it loads before the non-sticky post (as it is supposed to). How do I use the $page variable? Its always echo "1", no mater what page I am on (eg. /page/2, /page/3
Apr
15
revised Multiple loops on index page with sticky post and pagination
changed variable name in pagination function
Apr
15
comment Multiple loops on index page with sticky post and pagination
Oooops, sorry. I have changed it now, but there is still sticky posts on all the paginated pages. But I dont understand how that will change the display of Sticky posts. The Sticky post WP_Query have already been triggered before, and is written way before the pagination function is called.
Apr
15
awarded  Editor
Apr
15
revised Multiple loops on index page with sticky post and pagination
added pagination code
Apr
15
comment Multiple loops on index page with sticky post and pagination
Thanks for the quick reply. I added my pagination code in my question. I also added your code into mine, but there is still a sticky post on all pages.
Apr
15
asked Multiple loops on index page with sticky post and pagination