inFocus v2.0 - Display Blog Posts on Homepage

resolved (10 posts) (3 voices)

  1. Using inFocus v1.6 I have my blog posts displayed on the homepage. I was trying to get the same effect in inFocus v2.0, but I admit to being a little confused.

    In the inFocus configuration settings I have Homepage > Display Blog Posts checked and Blog > Blog Page set to Blog.

    In WP Admin I have Settings > Reading >Front page displays set to A static page and front page set to Blog (this is how it was for v1.6).

    However, this is what I see on the hompage using v2.0.

    I've tried various combinations, but none seem to work. What am I doing wrong?

    Regards, Steve.

    P.S. Have been using inFocus since v1.1 and this latest version looks to be another great addition!

    Posted 10 months ago #
  2. Elliott
    Support

    Hello nuxx,

    Make sure that you do not have a static page set to display on your front page.

    They should display fine by making sure you have the Homepage -> Display Blog Posts option checked.

    If your still having issues then if possible PM us a Wordpress login so we can take a look at your settings.

    Posted 10 months ago #
  3. Hi Elliott,

    Thanks for the quick response. I've set Front page displays to Your latest posts, but it's still not working.

    I've PM'ed you a WP login and password to a dev site. I'd be really grateful if you could take a look.

    Many thanks, Steve.

    Posted 10 months ago #
  4. Elliott
    Support

    They seem to be displaying fine nuxx, it might have just been a caching issue.

    If you do not want the default content (4 columns) then you can delete it under Dashboard -> [your_theme] -> Homepage in the "Custom Homepage Text" option.

    Posted 10 months ago #
  5. Many thanks Elliott,

    It is with much embarrassment that I realise it's working now. I wish I could blame it on the cache, but unfortunately it was user error.

    I do have one other question for you. The menu now shows Home and Blog. In v1.6 I could exclude the Blog page from appearing in the menu, but I can't see how I do this with v2.0. Any thoughts?

    Cheers, Steve.

    Posted 10 months ago #
  6. Elliott
    Support

    It would be easiest to use the WP Menus for complete control. Navigate to Dashboard -> Appearance -> Menus and you can add and organize your pages / links however you like.

    If you still wish to use the default menus then we'll get you setup but it is just much easier to use the WP menus.

    Posted 10 months ago #
  7. Hi Elliott,

    Thanks for pointing me in the right direction with WP menus. I've not used them with inFocus before.

    I'm still not sure about the blog posts on the homepage though.

    In v1.6 the homepage and the blog page appeared to be one and the same. For example the root URL http://www.mysite.com/ displayed my blog posts. There wasn't a seperate display of a blog page.

    However, in v2 I seem to have two distinct pages: a homepage that displays blog posts at http://www.mysite.com/ and then another blog page that also displays blog posts in a different format at http://www.mysite.com/blog/. Incidentally, the page navigation for the homepage is broken. It shows ../page/2/, ../page/3/ etc but the page displayed is always page 1. I suspect it may have something to do with the $paged/$page variable.

    I'd be really grateful if you could shed some light on this and help me understand what's happening.

    Many thanks, Steve.

    Posted 10 months ago #
  8. Elliott
    Support

    I see what you mean nuxx, I'll notify our devs to see if we can get a quick workaround.

    Posted 10 months ago #
  9. Webtreats
    Support

    Hi nuxx,

    Thanks for the bug catch.

    Below is the fix which we'll be adding to the first update to our Framework:

    Open: infocus/lib/functions/theme.php

    And replace Line #'s 1180 - 1181 with the following:

    } elseif( ( is_front_page() && mysite_get_setting( 'frontpage_blog' ) ) || ( !empty( $post_obj->ID ) && get_option('page_for_posts') == $post_obj->ID ) ) {
    	if( !empty( $mysite->offset ) ) {
    		$mysite->posts_per_page = get_option( 'posts_per_page' );
    		add_filter( 'post_limits', 'my_post_limit' );
    	}
    
    	$args = array_merge( $wp_query->query, array( 'post_type'=> 'post', 'paged'=> $paged, 'offset' => $mysite->offset, 'category__not_in' => mysite_exclude_category_string( $minus = false ) ) );
    	return query_posts( $args );
    }

    Open: infocus/lib/functions/core.php

    And replace Line #'s 490 - 499 with the following:

    function mysite_get_page_query() {
    	global $mysite, $paged;
    
    	$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
    
    	return $paged;
    }

    Let us know if this works.

    Posted 10 months ago #
  10. Webtreats,

    Works like a charm. Excellent customer service as always.

    Regards, Steve.

    Posted 10 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme