WordPress.org

Ready to get started?Download WordPress

Forums

Removing The Category(?) Page (9 posts)

  1. GreenFairy
    Member
    Posted 7 years ago #

    Hi everyone,

    I have a number of articles set up on my blog.

    They are listed down the left nav bar. When someone clicks on the article they want to go to they are taken to a page which I believe is a category page, (it has the headline and first few lines of the article on it).

    They then have to click on the article title to be taken to the full article.

    Is it possible to skip the first page they are taken to?

    So that when they click on the link on the nav bar they are taken directly to the article post?

    Thanks in advance,

    Casey

  2. KatGirl
    Member
    Posted 7 years ago #

    I'm such a nosy parker....

    You mention "some". Can I ask how many? And, will you be increasing that number over time?

  3. GreenFairy
    Member
    Posted 7 years ago #

    There are 10 at the moment and maybe a couple more in the future, or maybe not. I haven't decided yet

  4. KatGirl
    Member
    Posted 7 years ago #

    This is just a suggestion. I'd imagine the Mod's will have a potentially cleaner and smarter way of doing this.

    You could manually insert the Post URL into your sidebar, given that there are so few posts, so when an end user clicks a link they are directly taken to the single Post view. This will require a single.php to render properly.

    Or, for automation purposes, you can create a Link's Category and create the Single Posts URL links there and then call the group of posts by using wp_linksbyname in your sidebar. When you need to update (add more links) you can do so by adding to the link Category instead of editing your sidebar nav.

    Check http://codex.wordpress.org/Template_Hierarchy to get a better understanding of how wordpress works, and which template WordPress will automatically search for in a given situation.

    You may need to also check: codex.wordpress.org/Template_Tags/wp_get_linksbyname and codex.wordpress.org/Creating_a_Static_Front_Page.

  5. moshu
    Member
    Posted 7 years ago #

    1. This mod doesn't necessarily know more than other users - just has spent a longer time around here and remembers a lot of things :)
    2. to the OP: without a link it is difficult to imagine what you described - if there are really posts enlisted in your sidebar (and not categories!), then the link shouldn't go the category archives. Can we take a look at it?

  6. GreenFairy
    Member
    Posted 7 years ago #

    I realise it makes it confusing to not see what I'm talking about, however the site isn't actually mine, Im just the one paid to do the work so I can't post the URL unless the owner says yes.
    (Am waiting on a reply)

    Katgirl- Thanks, will check out the links.

    Moshu- I believe you are right, and they are actually categories and not posts enlisted in the side bar.

    If I change the_excerpt below to the_content will that show the entire article on the category page?

    <h3 class = "summarylist" id="post-<?php the_ID(); ?>">" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h3>
    <div class="entry">
    <?php the_excerpt() ?>

  7. moshu
    Member
    Posted 7 years ago #

    Yes, it will.
    (although - and this is strictly my personal opinion - that defies the idea of having an "archive" view of the category/ies for easy and quick overview, especially if it is set to show a high number of posts... but whatever the client wants)

  8. GreenFairy
    Member
    Posted 7 years ago #

    Your opinion is valid Moshu,

    The way its set up though is one article/post per category so there won't be a whole bunch of posts showing.

    And yep, the catch phrase is 'whatevet the client wants' :)

  9. GreenFairy
    Member
    Posted 7 years ago #

    Ok, Im feeling a little silly but I need to ask,

    Since making the change to the code above (which worked out exactly as was needed), I have forgotton which file I made the changes to.

    Can someone please remind which file contains that piece of code?

    Genuinely,

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.