WordPress.org

Ready to get started?Download WordPress

Forums

2 blog pages - posts links to the other blog page instead of their own post page (7 posts)

  1. nicnack
    Member
    Posted 2 years ago #

    Hi!

    I've made two blog pages by making a second template page and then pointing only certain post tags to my second page, therefore allowing me to essentially have two separate blog pages, each loading certain posts per their tag. the links are:

    http://www.thirdeyeyogastudio.com/blog/
    (the main index page)

    http://www.thirdeyeyogastudio.com/blog/buzz
    (my 2nd template page)

    The buzz template is an identical copy of the index page, but simply a change only in the tags it loads.

    So the problem is that the posts on the 'buzz' page link to the other blog page instead of their own post page

    help?

    Thanks!

  2. Jonas Grumby
    Member
    Posted 2 years ago #

  3. nicnack
    Member
    Posted 2 years ago #

    huh. well dang. my theme, chunk, does not have a 'page.php' nor does it have a 'single.php' . I borrowed the 'single.php' from twenty-ten and that did the trick! thanks!

    now there's a small bug at the top of my blog page where its loading a dynamic pair FB buttons.. which I think is because of the excerpt code I dropped in:

    <?php
    global $more; // Declare global $more (before the loop).
    $more = 0; // Set (inside the loop) to display content above the more tag.
    the_content("More...");
    ?>

    perhaps I dont need to put this bandaid in the code if someone can tellme why the 'more' button doesn't seem to work on my second blog page..??

  4. Jonas Grumby
    Member
    Posted 2 years ago #

    In the template for your second blog page, is the loop code set to show the_content or the_excerpt?

  5. nicnack
    Member
    Posted 2 years ago #

    the content. since the 'more' button doesn't seem to work when posting blogs to this page (http://www.thirdeyeyogastudio.com/blog/buzz) then I was looking to add in an excerpt script.. but I am wondering why I need to do this since the 'more' button works on the main page (http://www.thirdeyeyogastudio.com/blog/)

  6. Jonas Grumby
    Member
    Posted 2 years ago #

    The home page is probably using index.php while other "pages" are using page.php.

    The "read more" link is working on that page in the "30 Things to Stop Doing to Yourself" article, possibly because that is the only article long enough. Looks like you are showing the_excerpt in that template.

    WP has excerpt capability built in. You should see the dialog box on the add/edit post screens. If you leave the box blank it takes the first 55 words of the post.

    http://codex.wordpress.org/Excerpt

  7. nicnack
    Member
    Posted 2 years ago #

    The reason you see it working is because I added in the following code at the top of my page.php. Beforehand the 'more' function just didn't work. When making a post I would insert the 'more' button but nothing would happen.

    Since I added in the code below, it works but do you see the pair of facebook buttons at the top of the page? I dont know why they are showing up.

    Im just wondering why I would need to add any script because Im thinking it should simply work.. :/

    <?php
    global $more; // Declare global $more (before the loop).
    $more = 0; // Set (inside the loop) to display content above the more tag.
    the_content("More...");
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.