Forum Replies Created

Viewing 5 replies - 31 through 35 (of 35 total)
  • Thread Starter chocks

    (@chocks)

    Sorry 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 publishing

    hi folkmun, have you srted out this yet? I’m looking for the exact same thing!
    Cheers,
    Joaquín

    Hi! 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.-

    Thread Starter chocks

    (@chocks)

    Anyone please?

    Did 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.

Viewing 5 replies - 31 through 35 (of 35 total)