Wordpress and categories?

by Nolo
3 replies
Hi,

Sorry, I just didn't know where to post that

And this is quite simple, must be a dumb thing, but I can't find where it is!
If I have a Wordpress website, and if I want a website layout, non blog, I have to display one article at a time on the site.
That I can do, the problem is: my different categories (which are in fact the article name, one article by category) showing on the right, redirect to a "preview" of the articles. Then you have to click on it to get to the full article.

How in the world do I redirect a category to a full article directly !? :p

Thanks a lot! Struggling with it, though it's probably a simple thing!
#categories #wordpress
  • Profile picture of the author Nolo
    An idea someone...? (post gets down pretty quick )
    {{ DiscussionBoard.errors[1495423].message }}
  • Profile picture of the author Istvan Horvath
    There are a few problems with your approach/setup.

    Having as many categories as posts... is like having no categories at all. It just doesn't make sense: categories are supposed to be big(er) groups that hold together related posts.

    Anyway, check out your theme and see if it has a template file called category.php. If it doesn't, then look for a file called archive.php (singular, NOT archives.php - that's something different!)

    If you found it, just look for a code line that looks similar to this:
    <?php the_excerpt() ?>

    Replace it with this:
    <?php the_content() ?>

    P.S. And don't ever bump your posts after a few minutes!
    Signature

    {{ DiscussionBoard.errors[1495460].message }}
    • Profile picture of the author 1nspire
      Yea there is the excerpt or content thing you can do but the easiest thing to do is to create you own list in add it as a text box widget. In the list just anchor the articles using the category name. WP is not designed to do what you are asking. Categories are mainly for post organization and not to display an article.

      If you need the list html code here you go. <ul> for unordered and <ol> for ordered list like 1,2,3, and so on.

      HTML Code:
      <ul>
      <li><a href="article link">anchor text</a></li>
      <li><a href="article link">anchor text</a></li>
      <li><a href="article link">anchor text</a></li>
      <li><a href="article link">anchor text</a></li>
      </ul>
      Just copy the code and add it to a text widget in wordpress.
      {{ DiscussionBoard.errors[1495511].message }}

Trending Topics