harrismc
Forum Replies Created
-
Forum: Themes and Templates
In reply to: get_pages how to disable grandchildrenFound it
This worked
$mypages = get_pages('child_of='.$post->ID.'&sort_column=post_date&sort_order=desc&parent='.$post->ID);
Forum: Themes and Templates
In reply to: get_pages how to disable grandchildrenI searched codex and I found only that exclude_tree can be used to hide grandchildren in conjunction with a ‘child_of’ value. But no details..
How do you post images in slider ?
Forum: Fixing WordPress
In reply to: previous_posts_link next_posts_link problemI fixed this, i had to create array outside of first loop , that was mistake, Thanks alchymyth for help
Forum: Fixing WordPress
In reply to: previous_posts_link next_posts_link problemif ( !in_array( $post->ID, $do_not_duplicate ) ):
This line i guessForum: Fixing WordPress
In reply to: previous_posts_link next_posts_link problemYes i tried it works but over the header of those mini posts im getting this error
[function.in-array]: Wrong datatype for second argument in /home/droren/drorengel/blog/wp-content/themes/hp-blog/index.php on line 41Forum: Fixing WordPress
In reply to: previous_posts_link next_posts_link problemhttps://www.chrisbrogan.com/page/2/
To look like this
Forum: Fixing WordPress
In reply to: previous_posts_link next_posts_link problemForum: Fixing WordPress
In reply to: previous_posts_link next_posts_link problemcan I use is_home() or is_front_page() ?
Forum: Fixing WordPress
In reply to: previous_posts_link next_posts_link problemNavigation works fine, so here’s what I wanted to make it..
At first page, first loop displays 3 latest post, and other 8 are displayed in short way, I have manage to do that, but my client wants that when he press next in page navigation , that those 3 latest don’t be displayed, only those short one’s. And what i got now is almost done , except I dont know how to remove those 3 “sticky” posts in next page…
Any ideas ?Forum: Fixing WordPress
In reply to: previous_posts_link next_posts_link problemThanks
<?php if (have_posts()) : ?> <?php rewind_posts(); ?> <?php wp_reset_query(); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('posts_per_page=11&paged='.$paged); while (have_posts()) : the_post(); update_post_caches($posts);
This worked for me I got just what i was searching for.
Thanks againForum: Fixing WordPress
In reply to: previous_posts_link next_posts_link problemI have reached 4 hours ?? still no clue
but I found this site, but i dont get it ??https://stylizedweb.com/2008/08/13/query_posts-pagination-problem/
Forum: Fixing WordPress
In reply to: previous_posts_link next_posts_link problemquery_posts(‘posts_per_page=11’); in this line i added 11 becouse when i filter these from first loop only displaying 5
Well just to save time it might be helpful… ??