Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter shovi

    (@shovi)

    didn’t work, but I fixed it thanks! and for anyone else interested here’s what I did:

    * created a category.php Template for all of my child categories, which didn’t have the PHP code above.

    * created a category-#.php Template for each of the main categories, and instead of $parentcat above I put the category #.

    * styled the category-#.php Template to look nice, using info from the wp_list_categories documentation page.

    I’m having the same problem, has anyone figured this out?

    Thread Starter shovi

    (@shovi)

    sorry if I’m not being clear, part of the problem is truly that one word means like 10 different things in this world…you have to be extremely picky about how you say things.

    okay different approach, taking into account davidchait’s comment above.

    there are four blocks of text/information/copy/whatever-the-hell-you-want-to-call-it on the homepage. three of them will pretty much stay the same, changing once in a while. one (#3 in the sequence) is just a “featured post” for which I have created a separate Category; there will only ever be one post in that category, albeit the post may change from time to time.

    so how’s this angle…put each of those blocks of text as posts in the “Featured” category, and then just show that category on the homepage of the blog.

    I can then use a Category template for that page to make sure the styling is the way I need it to be, and HOPEFULLY there’s a way to make three of the four posts “sticky” so they can retain their position in the sequence of my homepage.

    please tell me this makes more sense.

    Thread Starter shovi

    (@shovi)

    yes…I’m not the one doing the editing though…it’s for a client who unfortunately is very green when it comes to the internet. I’m lucky I’m even getting her to use WP as the backbone for her website.

    so I’m trying to make it easy for her.

    Thread Starter shovi

    (@shovi)

    thanks…is it the one that is called “get recent posts”? that one seems to do what I need it to, but I’m still back to being able to insert the post between other editable content.

    Thread Starter shovi

    (@shovi)

    so you’re saying that a <table> tag is now “PHP”?? mmm hmm. anyway, sorry if I misrepresented myself. I DO have a separate page template called homepage.php that the Page for my homepage solely uses. however, the latest post tag would have to get sandwiched between other editable content. so, I’m halfway there, now how do I call the single post from X category?

    thanks.

    Thread Starter shovi

    (@shovi)

    okay, new approach…I am creating category-#.php pages in my theme files and want to drop the child categories using wp_list_categories at the top of each category-#.php page. this will give me a title page for all my topics, but leave the rest of the blog alone.

    two issues combined into one…wordpress doesn’t recognize the category-#.php (# is obviously replaced) file. I’m using permalinks instead of index.php?cat=#, is there a setting I’m screwing up? and once that’s fixed, can I use that code above (and hard-code the category # in the child_of attribute) and get this to work?

    hardly a dynamic approach to this, but hey, whatever works. thanks to the community for your help!

    Thread Starter shovi

    (@shovi)

    thanks for the links, azaozz. any shot someone out there could just drop some code here in this forum for me; I’m sure I’m not the first person who’s tried to do this?

    Thread Starter shovi

    (@shovi)

    cool, that the hide_empty parameter worked (sort of)…one more thing (only because I’m on a deadline and it’s a little cumbersome searching this support forum…)

    if I use
    <?php wp_list_categories('orderby=name&hide_empty=0&child_of=8'); ?>
    how can I replace “8” with a dynamic category variable, so that whatever category I’m viewing I can only see those child categories (and that would mean when I’m at the deepest level this menu won’t show at all right?)?

    I’d also need to format the whole thing, but I found some relatively straightforward documentation on the wp_list_categories page.

    thanks!

    Thread Starter shovi

    (@shovi)

    how about putting most of the php code before the output of the page, but then using something like echo or include to embed the content in the html page.

    or hey, how about javascript? the way I see this, all of the php queries are like running functions in a separate .js file, and then when you need the output you just drop javascript into your html.

    obviously I’m relatively new to PHP πŸ™‚

    all I’ve noticed so far is that the two templates are there so you can alter the way the posts versus pages display in wordpress. for example, you may want to pull out the comments section of a page because you want it to be static content.

Viewing 11 replies - 1 through 11 (of 11 total)