Forums

[resolved] Post As Links in Cateorgies (7 posts)

  1. ragez
    Member
    Posted 2 years ago #

    All right guys i need a little help. You know how when you click a category in wordpress and you get to the category page it automatically shows all the post well is there a way i can have it show the links to the post in that category instead of the post? Thanks

  2. Sinapse2
    Member
    Posted 2 years ago #

    I believe what you're looking for is to edit the loop on your category page template and remove the the_content() echo in the loop. Replace it with something like <a href="<?php the_permalink() ?>"><?php the_title() ?></a> or something similar.

  3. ragez
    Member
    Posted 2 years ago #

    kinda a noob at editing stuff like this any other way to do it?

  4. Sinapse2
    Member
    Posted 2 years ago #

    You may be able to find a plugin that will provide you with a tag or something to use. Either way, you're going to have to find some way to override the default behavior of whatever template you're using.

  5. ragez
    Member
    Posted 2 years ago #

    i tried to edit the category-template.php but didnt find the the_content on notepad what do i do

  6. MichaelH
    Volunteer
    Posted 2 years ago #

    You will want to edit the proper template in your theme folder (e.g. the WordPress Default theme resides in wp-content/themes/default folder).

    Review Template Hierarchy to understand what template your theme uses for a Category Template and then modify that file as suggested above.

  7. ragez
    Member
    Posted 2 years ago #

    You Guys were very helpful i got it working thank you very much!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags