• Hello all,

    This is my first time posting, and I’m new to WordPress. I’m creating my own template that I had created for another script I was going to use, however the script didn’t offer everything I was looking for.

    Before I get to my question, I’ll describe my category set up. I’m making a Press Archive for an actor, so my main categories range from 1980 to 2008. And then within each category, I have Internet, Magazines, Newspapers, Reviews and Transcripts. So basically like this for each year:

    1980
    – Internet
    – Magazines
    – Newspapers
    – Reviews
    – Transcripts

    I have my index page set up so that you click on the years first, and then you are brought to a page that looks like this:

    Internet More….
    – post title
    – post title
    – post title
    – post title
    – post title

    The problem I’m running into is with the “More” link. Currently I have it coded to show the latest 5 posts under each subcategory as shown above. For the “More” link, I would like for it to link to a page that has a full list of all the posts by titles only, so the user could see all the titles of the posts in the subcategory, and then be able to click the title to be brought to the post. An example of what I mean can be seen at this site. If you click on 2008, and then the “More” link for Internet, you’ll see a list of all the posts in that category.

    For reference, my site is located here.

    I hope this all makes sense, lol, and is possible to do without too much trouble, as I’m not very knowledgable with php and such. Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sparkleplenty

    (@sparkleplenty)

    Anyone?

    Well, it would be an archive page. So in the archive page (archive.php), modify what is displayed. Instead of having the post or an excerpt, just modify it to display the title with the permalink.

    So there’d be conditional tags. If it is in a certain category, then you wouldn’t show ‘the_content()’ or ‘the_excerpt()’.

    Find conditional tags and template tags in the codex for more help.

    Hmmm. You say you’re not comfortable with php? This might take you a while…

    Thread Starter sparkleplenty

    (@sparkleplenty)

    Alright, I’ll see if I can figure that out, however that leads me to another question.

    My archive.php file now currently has the coding for the following:

    Internet More….
    – post title
    – post title
    – post title
    – post title
    – post title

    So would I have to do some sort of “php if/else” coding?

    And how would I create the “More” link?

    :/ I’m pretty much a noob when it comes to php.

    Thread Starter sparkleplenty

    (@sparkleplenty)

    Been playing around with it again, still not much luck.

    Maybe this would be a simplier explanation. I have the sub-categories with the 5 latest posts showing with the archive.php page. For the “more” link, is there anyway I can link to new .php file with the coding for the list of all the posts for that sub-category?

    To me, it’s basically like when you see at the bottom of a post “Post in {category name}”. If you click that, you’ll be brought to a page with the posts for that category, but when I tried the this: <?php the_category(‘, ‘) ?> on the archive.php page for the More link, it doesn’t work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Creating a “More Posts” Link’ is closed to new replies.