magicfun1
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: hide post on home pageI’m still a little unsure of how I would modify it to exclude posts from category ID 2 on my home page only.
Here is my loop that I think I need to modify:
function thesis_home_loop() { $post_count = 1; $teaser_count = 1; while (have_posts()) { the_post(); if (thesis_is_teaser($post_count)) { if (($teaser_count % 2) == 1) { $top = ($post_count == 1) ? ' top' : ''; $open_box = ' <div class="teasers_box' . $top . '">' . "\n\n"; $close_box = ''; $right = false; } else { $open_box = ''; $close_box = ' </div>' . "\n\n"; $right = true; } if ($open_box != '') { echo $open_box; thesis_hook_before_teasers_box($post_count); } thesis_teaser($classes, $post_count, $right); if ($close_box != '') { echo $close_box; thesis_hook_after_teasers_box($post_count); } $teaser_count++; } else { $classes = 'post_box'; if ($post_count == 1) $classes .= ' top'; thesis_post_box($classes, $post_count); } $post_count++; } if ((($teaser_count - 1) % 2) == 1) echo ' </div>' . "\n\n"; }
could you help me out?
Forum: Themes and Templates
In reply to: looking for similar templateWhere do I get it? Is it free? Whats the link? I tried to search for “Thesis” in the themes category, but it doesn’t come up with anything.
Forum: Fixing WordPress
In reply to: add sidebar to one post onlywhy do you have to convert the post to a page? Then it would be in all of my navigation correct? Can one hide it in the navigation?
Forum: Fixing WordPress
In reply to: adding an image to sidebar@ Shane G, I could do this, but it would be bound to the sidebar boxes that I currently have set up for the rest of my widgets right? I want to avoid this and have an image only.
Forum: Fixing WordPress
In reply to: template hierarchy questionexcellent. thank you, just what I was looking for.
Forum: Fixing WordPress
In reply to: sub pages: basic question:bump: anyone?
Forum: Fixing WordPress
In reply to: custom image headerlooks like it is lacking in documentation on how to use it for an image header only. I am looking to have like “about.jpg” on the about page, something really easy to setup that you could like pick an image from your media gallery or something and assign it to your page.
Anyone know a good resource?
Forum: Fixing WordPress
In reply to: template hierarchy questionanyone know why the page slug doesn’t work??
Forum: Fixing WordPress
In reply to: sub pages: basic questionI even tried to put a conditional in index.php to work around it and it still doesn’t work :
<?php if (is_page('Products')) { include( TEMPLATEPATH . '/header_none.php' ); } else { get_header(); } ?>
Forum: Fixing WordPress
In reply to: sub pages: basic questionanyone?
Forum: Fixing WordPress
In reply to: template hierarchy questionbasically, I am wanting my sub pages to look different than my home page by taking out the middle section. It currently doesn’t switch to the products.php template or even find it.
Forum: Fixing WordPress
In reply to: home linkThanks, i found the conditional I could add for the tab.
Forum: Fixing WordPress
In reply to: dynamic menu highlighting on non-wordpress pagesexcellent, thank you.
Forum: Fixing WordPress
In reply to: dynamic menu highlighting on non-wordpress pagesso my current dynamic menu highlighting works on every page except the home page. Here is my current code:
<ul id="nav"> <li<?php if (is_home()) { echo " class=\"current_page_item\""; }?>><a href="<?php echo get_settings('home'); ?>">Home</a></li> <?php if($kriesi_options['pagenav'] == 1){ wp_list_pages('title_li=&'.$kriesi_options['com_page']);} else{ wp_list_categories('title_li=&'.$kriesi_options['com_page']); } ?> </ul>
it looks like is_home() doesn’t see that it is the home page for some reason. What else could I use to have this work?
Forum: Fixing WordPress
In reply to: proper function to exclude on subpageI am not excluding pages, but rather an include statement. I don’t want this to show up in my search page.
https://www.refi-home-loan.com is my website I am trying to get rid of the 3 articles to the left on sub pages.