chrisboggs
Member
Posted 2 weeks ago #
My situation: I am a near-total WP noob and almost finished with my first WP site for my organization but I have one item that I have been unable to troubleshoot and any help would be GREATLY appreciated. I know it is because I do not completely understand how WP works yet but I suspect is has something to do with the hierarchy of templates used to display results and the loop on whatever template it is using.
My problem: If you go to this url: http://www.slaj.us/cms and use the sidebar widgets titled "SLAJ Article Categories" and "SLAJ Archives" the results displayed are complete posts, and no date/author information like you get when you search for the same posts on this site. How do I get Category excerpt-type results with author/date/title and a link to the single page post?
You need to edit the relevant template file - category.php for categories, archive.php for archives and single.php for single posts.
chrisboggs
Member
Posted 2 weeks ago #
@esmi - Thnx for your quick reply.
Am I correct in thinking that I need to add the correct template tags to the relevant template file's loop to achieve the excerpted-type result? Do you happen to know of a tutorial you might be able to provide a link to? Thank you for your help.
Am I correct in thinking that I need to add the correct template tags to the relevant template file's loop to achieve the excerpted-type result?
Exactly that.
The best resource I can off is http://codex.wordpress.org/Template_Tags/ - which is a list of all of the Template tags with their documentation. You need to look at:
the_title
the_permalink
the_content
the_excerpt
the_date
the_time
the_author
and choose which best fits your needs.
You might also want to have a look at http://codex.wordpress.org/Theme_Development
chrisboggs
Member
Posted 2 weeks ago #
Thanks esmi.
Last question: Is there a way (other than the chart available here in the Codex) to determine which template is being used by a given page? I have made updates to the categories.php template that are not being reflected in my output so I have obviously messed up the normal template document use/flow and am editing the wrong one.
chrisboggs
Member
Posted 2 weeks ago #
Figured it out. I incorrectly named category.php as categories.php and of course had no effect on the generated pages. Thanks again esmi. -c-