Parent Category
-
I am creating a recipe blog. Parent Category is Recipe Index. When I click on Recipe Index I would like the sub-categories to show as Categories ONLY, not posts. Also, can I change the order in which Categories appear?
Thank you -
I think the only way to do what I mentioned above is to create pages, but I’m not entirely sure that would work either. Let me see if I can clarify what I want to do.
Is there any way to display a list of child categories when I click on the parent category, in this case, Recipe Index? I’ve deleted the Recipe Index category since, when I clicked on it all the posts under all child categories displayed, so it seems that having it as a parent is redundant.
-
If all your posts are under the same parent category, then you don’t need that parent category: just use “Recipe Index” as the title of the categories widget.
In the case of more than one parent categories, you’d need to use links to all your subcategories – in a text widget or a page (depending on whether you want the list to be visible in the sidebar or not).
-
Thank you. I do want the Parent Categories to show as they are now displayed on my blog.
Lets say I have 20 recipes (posts) under the Category, Breakfast. And when I click on Breakfast I don’t want to scroll through a bunch of partial posts, I just want a list of post titles, as below.Example:
Breakfasts (Parent Category)
Cereals (Title of Post)
Egg dishes (Title of Post)
Smoothies (Title of Post)I think I will have to create a bunch of Pages to accomplish this. Currently trying to get only the subject of the url to show, not the whole url.
-
“Currently trying to get only the subject of the url to show, not the whole url. “
Like the ‘Name Module’ which displays the link text, not the actual link. I know there’s code that will do that but I’m not sure of the code to actually try it out.
-
Best thing to do is create a page, in which you can arrange anything the way you want.
The code for a link is this, if you want it to open in a new browser window:
<a href="URL_HERE" target="_blank">TITLE_HERE</a>
Or this, if you don’t want that option:
<a href="URL_HERE">TITLE_HERE</a>
In the html editor, of course.In the visual editor you write the title, highlight it, click the Link button and paste the URL there.
But the fastest way to create links to your posts is: open two windows in your browser, main blog page in the one, visual editor in the other, drag&drop post titles to editor (hit return after each one). The titles get copied as live links.
I should also note that there are three themes that display only titles in category pages: Chaotic Soul, Hemingway and Ocean Mist.
-
“drag&drop post titles to editor (hit return after each one). The titles get copied as live links.”
Good idea. I tried this with Firefox tabs instead of 2 windows. Left click to drag the Category title up to the tab of the page you want to open and the page opens right up. Titles to live links.
http://themindfulkitchen.wordpress.com/recipe-index/
That’s exactly what I wanted to do and it has been my nemesis for months.
First, I pasted TITLE_HERE 7 times on the ‘Recipe Index’ editor page. Then, I dragged each Category over and pasted it over “url_here”. Had to clean it up a little but it worked very well.
Thanks so much for your help!
-
Oops. “First, I pasted TITLE_HERE 7 times on the ‘Recipe Index’ editor page.” That should have read, ‘I pasted the code for a link 7 times.’
-
Yeah, I understand. And you’re welcome. But your index now is too similar to your sidebar categories. In your 4:46 PM post you said you wanted a list of POST TITLES. What I would do in that page of yours is this:
Breads [<– bold, larger type, no link]
Banana Bread [<– link to post]
Breakfast [<– bold, larger type, no link]
Breakfast Casserole [<– link to post]
Granola [<– link to post][etc.]
-
Hmm. I will have to give this more thought. What I meant to say is, category titles, but I see your point and that’s a good idea. I see that I don’t have a choice about whether or not categories are published. So what I might check out is this idea , making an index page by using tags, and another page by recipe title. I assume I could create one page like in the example and a link to the other page via page title.
My goal is to one day have blog on WP.org and I don’t understand code well enough to know if I am creating a blog that will be easy to transfer or not.
- The topic ‘Parent Category’ is closed to new replies.