Last 30 Posts not retrieving all

  • Posted in : Bloggy WP
  • brianhammonds
    Participant

    My “last 30 posts” isn’t pulling in all posts. I currently have 4 posts on my blog, but only 2 are showing up. For intance, my link post “Of Some Value” isn’t showing up. Any idea why?

    http://www.brianhammonds.com/archived-notes/recent-archives/

    Thanks!

    ahmetsali
    Keymaster

    Hi, i clicked your url, it says 404.

    brianhammonds
    Participant
    Mehmet S.
    Keymaster

    Hi, there is an option for that: Theme Options > Blog > All Post Formats on Homepage.

    Thanks

    brianhammonds
    Participant

    I already have that feature enabled, but I don’t think that’s it. I’m talking about the archive page, not the homepage.

    http://www.brianhammonds.com/archived-notes/recently-archived-notes/

    Mehmet S.
    Keymaster

    Sorry.

    – you need to edit your template-archive-2.php file.

    Find:

    if ( $format == false )
    

    Edit:

    if ( ( $format == false ) || ( $format == true ) )
    
    brianhammonds
    Participant

    I will try do to that, but won’t that change be overwritten if I install a future Bloggy theme update? If so, is there a way to do the same thing with CSS?

    Mehmet S.
    Keymaster

    Sorry, not possible via css.

    brianhammonds
    Participant

    I made the edit to the template-archive-2.php file, but it didn’t change anything. The last 30 posts is still missing some posts. Any other suggestions? Thanks

    brianhammonds
    Participant

    I responded under another post that I realized that the only posts being pulled into the last 3o posts are the standard format posts. The other posts aren’t being pulled in for some reason. This seems to be a part of a larger issue with my “standard format” posts not showing up correctly across the site. Any help is appreciated. Thanks.

    laziem
    Participant

    I can confirm that “if ( ( $format == false ) || ( $format == true ) )” work on my site http://www.laziem.com/archive/

    I hope I can change this via theme options.. thanks :-)

    brianhammonds
    Participant

    I tried that, but it didn’t work. I just replace this: if ( $format == false )

    with this: if ( ( $format == false ) || ( $format == true ) )

    right?

    Nothing changed when I tried that before…

    Mehmet S.
    Keymaster

    Remove condition and try again:

    – default:

    while ( $loop_homepage->have_posts() ) : $loop_homepage->the_post();
    	
    	$format = get_post_format();
    	
    	if ( $format == false )
    	{
    		?>
    			<li>
    				...
    				
    				...
    			</li>
    		<?php
    	}
    	// end if
    	
    endwhile;
    

    – edited:

    while ( $loop_homepage->have_posts() ) : $loop_homepage->the_post();
    
    	?>
    		<li>
    			...
    			
    			...
    		</li>
    	<?php
    
    endwhile;
    
    brianhammonds
    Participant

    So, I finally got this to work: if ( ( $format == false ) || ( $format == true ) )

    Mehmet S.
    Keymaster

    Ok. Good luck.

    brianhammonds
    Participant

    Hello again,

    I installed the new bloggy update and my “Last 30 Posts” was again not retrieving all. So, I again followed the steps you told me before to edit the Archive 2 Template:

    Find:
    if ( $format == false )
    Edit:
    if ( ( $format == false ) || ( $format == true ) )

    It worked again, but I’m wondering if you can just make that adjustment to the template in the next update you put out so that I don’t have to lose that every time I update and have to remember to back in each time to change Archive 2 Template. It’s the only edit I’ve made to the template files, as I prefer not to touch them. Thanks…

    Mehmet S.
    Keymaster

    Ok :)

    Mehmet S.
    Keymaster

    New version is available on ThemeForest.

    – Theme Options > Blog > All Post Formats on Archive 2 (Last 30 posts).

    brianhammonds
    Participant

    Is there something else I’m supposed to do? I updated to 2.7.3 and it still only pulls “standard” post format, not the last 30 posts.

    brianhammonds
    Participant

    After the 2.7.3 update didn’t solve the issue, I again followed the steps you told me before to edit the Archive 2 Template:

    Find:
    if ( $format == false )
    Edit:
    if ( ( $format == false ) || ( $format == true ) )

    Mehmet S.
    Keymaster

    You need to select “Yes” from the option “Theme Options > Blog > All Post Formats on Archive 2 (Last 30 posts)” after updating.

    brianhammonds
    Participant

    It worked…thanks so much!

    Mehmet S.
    Keymaster

    You are welcome.

Viewing 23 posts - 1 through 23 (of 23 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register