Skip to:
Content
Pages
Categories
Search
Top
Bottom

Sub-Blog Doesn't Show Blog Posts


  • cynthiablue
    Participant

    @cynthiablue

    http://utahdogs.com/parks/blog

    As you can see from the link, this area of the sub-blog, parks, isn’t showing the actual blog posts under the main area. This is the default theme with every little modification. I don’t see that I can put a widget in that spot… how do I get the posts there?

    Thanks.

    Cynthia

Viewing 9 replies - 1 through 9 (of 9 total)

  • cynthiablue
    Participant

    @cynthiablue

    Bump.. anyone know how I can get these to show?


    Brajesh Singh
    Participant

    @sbrajesh

    It seems to me, you are unable to catch the blog slug.

    make sure , you functions.php has something like this,You can see this code in bp-sn-parent

    /* Make sure the blog index page shows under /[HOME_BLOG_SLUG] if enabled */
    function bp_dtheme_show_home_blog() {
    global $bp, $query_string, $paged;

    if ( $bp->current_component == BP_HOME_BLOG_SLUG && ( !$bp->current_action || 'page' == $bp->current_action ) ) {
    unset( $query_string );

    if ( ( 'page' == $bp->current_action && $bp->action_variables[0] ) && false === strpos( $query_string, 'paged' ) ) {
    $query_string .= '&paged=' . $bp->action_variables[0];
    $paged = $bp->action_variables[0];
    }

    query_posts($query_string);

    bp_core_load_template( 'index', true );
    }
    }
    add_action( 'wp', 'bp_dtheme_show_home_blog', 2 );


    cynthiablue
    Participant

    @cynthiablue

    Thanks for your reply… my function.php does have that portion in the code. Exactly as you post. Strange… I wonder why my blog posts are not showing.


    Brajesh Singh
    Participant

    @sbrajesh

    ok

    As I see now, You are removing blog slug prom post permalink Is that right ? May I know, you are using some plugin or custom code to do that. As that may be a reason.


    cynthiablue
    Participant

    @cynthiablue

    Hmmm if I am, I’m not doing it on purpose. I’ve tried some various plugins maybe one of them caused the error.

    the URL is utahdogs.com/parks/blog

    That is where I cannot see the blog posts.

    What should it look like… the URL?

    The posts themselves have a URL such as

    http://utahdogs.com/parks/2009/12/16/slc-millrace-dog-park-2/

    which does not include ‘blog’ in the path. Is this my problem?

    Thanks.

    You only get /blog/ if you’re using the default BuddyPress theme. In fact, that’s what the code above should be doing – it handles this sort of URL – http://utahdogs.com/blog/2009/12/15/suggest-links/

    I think there’s a bit of confusion here.

    You’re using a WPMU install (subdirectory type). So ‘parks’ is a hosted blog, which you can therefore access at http://utahdogs.com/parks/. You’re also using the default theme for hosted blogs; the default theme it isn’t built to support that and you are going to get weird things happening with the URLs in the menu, for example.

    Ignoring those, your root blog is accessible at /blog/. This is because the root blog has to provide all the member pages, groups, and so on, so there has to be a special URL provided to be able to get to the actual *blog*.


    cynthiablue
    Participant

    @cynthiablue

    Ah okay thanks. I am not sure I quite understand but I’m super tired right now and will read your reply more later and look at my install too. :)


    roney
    Participant

    @roneneffect

    I am experiencing a similar issue.

    http://icraftsingles.com/blog/

    You’ll notice that when you click the “Blog” tab, its goes to http://icraftsingles.com/blog/blog. This link goes to a page instead of showing the posts of my main blog. I am on a subdirectory install.

    Any help would be greatly appreciated. :]


    roney
    Participant

    @roneneffect

    Issue resolved for me.

    Turns out (in my particular case), buddypress doesn’t like being integrated with a WPMU that is installed in a directory named /blog/ ….it seems to sorta confuse bp when it tries to route the main WPMU blog, which sorta makes sense when you really think about it.

    So I renamed the /blog/ directory to /social/ and made sure this change was also made in my wp-config.php file and .htaccess file. Also double checked my database as well and presto, everything works perfectly.

    Note that any existing member blogs may be adversely effected by this process, but luckily I only had test blogs on my install. So this may not work as easily for everyone.

    :]

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Sub-Blog Doesn't Show Blog Posts’ is closed to new replies.
Skip to toolbar