wphax
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Question about Post ThumbnailsHmm. Anyone?
That works, thanks a lot. Looks great on localhost now and on the web.
🙂
I’m not really sure what you mean or what I would do to fix that, could you explain a little more?
Forum: Hacks
In reply to: Need Help using select tag in my custom options pageFigured it out, had to set up my options like this:
<?php $h2_color = get_option('h2_color'); ?> <option value="red" <?php if($h2_color == "red") { echo "selected='selected'"; } ?>>Red</option>Forum: Hacks
In reply to: Need Help using select tag in my custom options pageAnyone? 🙂
Forum: Hacks
In reply to: Last loop not displaying on a homepage with 3 loopsFixed my problem! I needed to offset the last query 2 posts, like this:
$my_query = new WP_Query('category_name=portfolio&posts_per_page=2&offset=2');Just posting in case anyone else runs into this problem.
Forum: Hacks
In reply to: Last loop not displaying on a homepage with 3 loopsThe
<?php wp_reset_query(); ?>code didn’t work, I put it just before each query but nothing changed.Forum: Hacks
In reply to: Last loop not displaying on a homepage with 3 loopsWell the last query isn’t displaying any posts. I have it set for the first query to display 2 posts from the category
portfolio, and also the third query does the same thing, but I don’t want it to duplicate posts. Query 2 takes 1 post from the categoryblog. There’s 3 posts in the portfolio category, and the first loop is displaying the first 2, but the last loop is not displaying any posts at all.Forum: Hacks
In reply to: Last loop not displaying on a homepage with 3 loopsCan anyone help…..?
Forum: Hacks
In reply to: Creating Default Text for Custom Theme OptionsActually, I fixed this myself. This is the code I used for reference if anyone else might need it:
<?php $headline_one = get_option('headline_one'); if($headline_one == "") { echo "<h1 class=\"center font-georgia\">This is the default text for the first headline and you can't change that. Well actually, you can in the options panel now! Weeeeeeeee!</h1>"; } elseif($headline_one != "") { echo "<h1 class=\"center font-georgia\">" . get_option('headline_one') . "</h1>"; } ?>