Community Forums › Forums › Archived Forums › General Discussion › List blog titles on one page with hyperlink
- This topic has 14 replies, 4 voices, and was last updated 9 years, 6 months ago by doug_eike.
-
AuthorPosts
-
August 6, 2014 at 4:30 am #117308BelindaParticipant
I have categories setup on my site and I want users to be able to click on links from my SecondaryMenu which will take them through to a page for each individual category where they can see a bulletted list of each blog title which they can then click as a hyperlink to view the actual blog content.
How can i do this??
August 6, 2014 at 6:33 am #117315DTHkellyMemberhttp://my.studiopress.com/tutorials/category-blog-page/
Search this forum, google, for category archive:
Some reference:
http://sridharkatakam.com/?s=category+archivehttp://wpsites.net/wordpress-tips/create-custom-category-archive-page-template/
August 6, 2014 at 7:37 pm #117482BelindaParticipantThanks Kellylise
I wasn't sure on the terminology to use. I can find alot of archive list options but so far haven't found exactly what I'm after with installation that I'm familiar with. A WP newbie here. 🙂Thanks.
August 6, 2014 at 8:09 pm #117494Brad DaltonParticipantAugust 7, 2014 at 12:21 am #117523BelindaParticipantThank you for the reply Brad. I think I'll leave this for the moment as it all looks a bit over my capabilities at present.
August 7, 2014 at 1:43 am #117527Brad DaltonParticipantIts very easy, all you need to do is create a new file named archive.php, add the code from the view raw link in the Gist and upload it to your child themes folder.
Otherwise, you could CSS to hide everything.
October 11, 2014 at 10:24 am #127480doug_eikeMemberI'm trying to do the same thing. I have two category pages on my secondary menu, and I would like them to be lists of links to the posts in their respective categories. I'm using a PC with Windows 8 and the Genesis Framework with the Lifestyle Pro child theme.
I am fairly comfortable with html and css, but I am still leery of hosing my site by messing with the php coding. Is there any way to accomplish what I want with css? Brad, you mention hiding everything with css, but I'm not sure what you mean.
Here's a link to one of the category pages on my site: Expressions
Thanks!
October 11, 2014 at 10:53 am #127483doug_eikeMemberThis comment refers to the previous two posts--Brad's and mine.
Brad, I'm looking at your archive.php code, and it seems it applies to the entire site, including the home page, other pages, and perhaps the footer.
I would like to limit the change to two category pages only, and I need the listings on those category pages to be links to each post. Can you suggest the adjustments that I would have to make to your archive.php file in order to accomplish that?
Here’s a link to one of the category pages on my site: Expressions
Thanks!
October 11, 2014 at 10:12 pm #127530Brad DaltonParticipantSimply change the name of the file using the WordPress Template Hierarchy.
You can also duplicate the file or use template_include to use the template conditionally.
October 12, 2014 at 12:30 pm #127587doug_eikeMemberBrad, thanks for the advice and the link. I'm looking at the hierarchy now, and although it appears complicated, I know I need to study it. I'm still unable to use the information you've provided, but I'll read for a couple of days and come back here with another comment/question. Thanks again.
October 12, 2014 at 4:12 pm #127593doug_eikeMemberBrad, I just added your file under the name "category.php" to my Lifestyle Pro child theme, and now one post title appears as a link at the top of each category page. So far, so good! 🙂
Only one title appears in each category, though, and I would like for all of the post tiles in the categories to be listed as links on the category pages. I would like a long listing of links to appear on the category pages that I can style with css. Can you give me some direction as to how to force the other posts onto the category pages?
Here's what a category page looks like now: Grammar
Thanks!
October 12, 2014 at 9:35 pm #127623Brad DaltonParticipantDoug
A little bit of work is required on your behalf.
Use pre_get_posts to control archive page limit
Or your Genesis > Theme Settings > Content Archive settings which you should check first.
October 12, 2014 at 10:15 pm #127625doug_eikeMemberI've already looked at the Genesis Theme Settings, and I don't see anything that applies to the category pages alone. Tomorrow I'll take a closer look at the pre-get-posts information you've provided, but a cursory look tells me that it's far above my coding level at this point. My html and css skills are improving, but php is a new area for me. I'll do some homework and return with further questions. Thank you for your help.
October 12, 2014 at 10:40 pm #127626Brad DaltonParticipantOctober 13, 2014 at 9:46 am #127679doug_eikeMemberIs there an administrator who marks the threads as resolved? Or is there something I need to do to do so?
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.