• Hi:
    I would like to know if there is a plugin that makes this: when user clicks on a category, instead going to a page with all the complete posts of that category, go to a page with a list of all post titles that links to the complete posts.

    Thank you in advance!

Viewing 13 replies - 1 through 13 (of 13 total)
  • I’m not sure about just post titles but you can try this if you wish.
    If you want to edit files – go into wp-content themes default or whatever theme you are using and look for archive.php –
    You should open the archive.php file (not the archives.php!!!) and replace the_content tag with the_excerpt.
    This will show you an excerpt with title link to complete post.

    Hope that helps

    I’ve been looking for exaclty the same thing!

    Thanks for the information – I shall try it out.

    But does it order the excerpts in any way?

    The nearest plug in I got was Custom Query String at

    https://mattread.com/projects/wp-plugins/custom-query-string-plugin/

    BUT – it displays the full post.

    Something like this that displayed excerpts with a link to each page, ordered by date or alphabetically, would be fantastic.

    I don’t mind hacking the code (slowly!) but it would be SOO much easier to have a nice plug in ….

    Thread Starter riks

    (@riks)

    brantz88: I have tested the _excerpts before, they appear, but not links are showed, only text. ??

    For some reason the titles of all our posts are links to the full post so when it shows an excerpt you click on the title of the post and it takes you to the single post with full content.

    When I first set this up I made several categories for and I noticed that when I clicked on a category you get an archive view of that category with full posts and that was too much info so I edited the archive.php file (with help of course from this support site) to display the_excerpts in the archive view. Sorry this didn’t work for you.

    Riks, no problem. You can do this without plugin. Go:

    Admin > Presentation > Theme Editor > category.php

    Save a backup copy before you modify it, just in case you want to go back.

    Locate “The Loop” it starts with this
    <?php while (have_posts()) : the_post(); ?>
    try to understand the code, you can read it. You can delete the code for the_excerpt or the_content, also whatever you don’t want like the_author, the_date, etc. The part you want to leave is basically like this
    <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>

    Notice the a href= which is making the Title a link to the full article.

    Then leave alone the end of the loop and everything after
    <?php endwhile; ?>

    Thread Starter riks

    (@riks)

    Dgold thank you!!!!
    I didn’t have category.php, so as I read in another post I made a copy of archive.php and renamed category.php

    Then go to the loop you said and add the line of code you gave me. Then I deleted the_author, the_date, comments, etc and I’m done.

    Thank you again! I’m learning a litle more how WordPress works, I have installed my first blog 3 days ago ??
    If you want to see a live example of all this:
    https://www.sometricks.com

    Another question: how can I add an image before every link?
    Is there an easy way?

    Glad that worked.

    Explain, what do you mean an image before every link?

    One meaning… in your Admin > Links manager, you can give an image like a button/sticker for each of your “Links”.

    A different meaning… with the External Links plugin (forgot the exact name of it), you can automatically have a tiny little away-arrow icon that shows before any link which you post that goes to another domain.

    Thread Starter riks

    (@riks)

    I mean: I would like to have an image in the title of the posts, so when you go to any category you will get this list of posts with a different image to the left of the post title.

    Maybe when i do a new post i can add that image, save and then see the images in the list of posts.

    Still not sure I understand your links request.

    Do you want a unique illustration with each post, like an icon? If so you could possibly do this with Custom Fields and the Get Custom Fields plugin might help. You would put the URL of the graphic in the custom field on each post, and use Get Custom Fields to call the contents of that field as an img scr= (perhaps right before the_title code I gave above).

    Thread Starter riks

    (@riks)

    Yes, it’s an icon.
    Imagine you have an img src= on the title. Then the icon will be showed in the title of the post and in the category list (which are post titles too).

    I tried to use custom fields, but I can not get them showed, there is something I’m missing.
    ??

    Thread Starter riks

    (@riks)

    mmmm….i got that with the Get Custom Field plugin.
    Thanks again ??
    Now i will only has to see how to align the image, but this works

    Oh, good. Glad that’s working. I’m curious what you put in the custom field, the whole img scr= code, or just the URL of the image?

    Use that method if you want a different icon for every post (no 2 icons the same).

    Alternatively, there is a plugin, I think called Category Images. This puts always-the-same-icon when it is a certain category. Example, an icon of an apple shows up for all posts in your Apples category.

    Thread Starter riks

    (@riks)

    The plugin let me to put icons, the author has an example.
    What you have to put in The-loop is:

    <?php echo c2c_get_custom(‘post_icon’, ‘<img alt=”post icon” class=”posticon” src=”/wp-images/posticons/’, ‘.gif” />’, ‘blank’); ?>

    So if you add to the value of custom field “myimage”, the plugin will link wp-images/posticons.myimage.gif

    You have the whole explanation here:
    https://www.coffee2code.com/archives/2004/06/30/plugin-get-custom/#notes

    And to vertical align the image to the title I had to modify the styles.css:

    Change this:
    h3.entrytitle, h3 {
    padding-top: 0px;
    }
    For this:
    h3.entrytitle, h3 {
    padding-top: 12px;
    }

    I like the way you can change things in WordPress ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Category page with links to post titles, not complete posts’ is closed to new replies.