chocks
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Complicated 3 Loops and Pagination on Category.phpSorry that I didnt explain the problem correctly. The issue is that I run the following loops:
Above the first loop:foreach(get_the_category() as $category) { $thecat = $category->cat_ID; }
// So I know which cat id it is.
Loop 1:$my_query = new WP_Query('showposts=1&offset=0&cat'.$thecat.''); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; $image = get_post_meta($post->ID, "pft_principal", $single = true);
Result: ok
Loop 2:$my_query = new WP_Query('showposts=3&offset=1&cat'.$thecat.''); while ($my_query->have_posts()) : $my_query->the_post(); $image_2 = get_post_meta($post->ID, "pft_secundaria", $single = true);
Result: posts in every category instead of the single cat.
Loop 3:$my_query = new WP_Query('showposts=5&offset=4&cat'.$thecat.''); while ($my_query->have_posts()) : $my_query->the_post(); $image = get_post_meta($post->ID, "pft_principal", $single = true);
Result: Same as above. Offset working but it’s not displaying posts from that category only.
It’s also breaking the footer! God knows why.. and pagination is not working either.. any clue? I’m desperate!Forum: Plugins
In reply to: Easy frontend publishinghi folkmun, have you srted out this yet? I’m looking for the exact same thing!
Cheers,
JoaquínForum: Plugins
In reply to: wp_get_archives but skip the current yearHi! I’m looking exactly for that solution! Would you mind sharing with me the code to do that please?
I’d like to get the archives by year (skiping the actual) and list monthly the current years’ archive.Cheers,
J.-
Forum: Themes and Templates
In reply to: Getting a the Post Position (php funct?)Anyone please?
Forum: Themes and Templates
In reply to: random hadder/banner with every refreshDid you try the random.php file which grabs images from a specific folder a displays it randomly?
Google the file and you’ll know what I’m talking about.