questions4wp
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Simple PHP Question – Conditional Display of Categorysorry for the triple post but I just got it to work…for some reason is_home() didn’t do anything for me, but is_front_page() works. Thanks for all the help!
Forum: Themes and Templates
In reply to: Simple PHP Question – Conditional Display of CategoryOk so I found one issue, for some reason even though my home page is set to static, if I have
if (!is_home(){}
anything withing the squiggly brackets will show up on every page, home included. For some reason my home page isn’t registering as actually being home.Is there a way to output the
the_category
conditionally? likeif (the_category() != "Uncategorized) {the_category();}
Forum: Themes and Templates
In reply to: Simple PHP Question – Conditional Display of CategoryHmmm, I tried that but it still displays the word uncategorized on the home page
Forum: Themes and Templates
In reply to: Simple PHP Question – Conditional Display of CategoryThanks! I’m still having a little trouble formatting the command though. Right now I have this:
<div class="header3"><?php the_category(', '); ?></div>
but I don’t want the
the_category(', ')
if we’re on the home page. According to the page you sent me (thanks again!), because I have a static home page, the is_home() function will return ‘true’ if I’m on that home page, and ‘false’ if I’m not. My code so far (which doesn’t work) is:<div id="container"><div class="header3"> <?php if (is_home()==false) { the_category(', '); } ?> </div></div>
The idea is: it opens the div tags, and then places the category function only if we’re not on the home page. It then closes the div tags. Unfortunately, this doesn’t work. Any idea why?
Forum: Fixing WordPress
In reply to: Noob Help – Multi-Page WebsiteOk, thank you. One more question – what exactly is the purpose of making new pages? Essentially I guess what my site comes down to is one static page and a whole bunch of posts, which are then displayed based on different dynamic pages based on category. Are the “Pages” (as opposed to posts) just other static pages?
Forum: Fixing WordPress
In reply to: Noob Help – Multi-Page WebsiteOk, I didn’t know that option was available but I’ll look for it, that would make things significantly easier.
But for the sections thing – I’d like from this static home page to be able to link to a page showing only certain posts, and then another link to another page showing a separate, distinct group of posts. How would I do that? Categorize each post and then have the links go to that Category?
Forum: Installing WordPress
In reply to: How Will a Second WP Installation Affect the FirstOk, thank you very much for your help!
Forum: Installing WordPress
In reply to: How Will a Second WP Installation Affect the FirstThanks!
Hmmm…the subdomain does seem better. How would I set that up? I’ve set up a subdomain before, but wouldn’t putting another copy of the wp-content and wp-admin etc. folders in the same directory cause problems?
Forum: Fixing WordPress
In reply to: Post on Multiple WebpagesI see, so that function is not actually supported by the regular version of WordPress, but there’s another version.
If I still wanted to use the regular version of WordPress, though, would multiple installations be the only option?
Forum: Fixing WordPress
In reply to: Anchors on Page Turn Text Red with MouseoverOh man, you’re absolutely right. I didn’t know those were necessary since it’s not actually the link, but I should have known when yo have an you need an . Thanks so much for correcting my stupid mistake!