alexDevMilagro
Forum Replies Created
Viewing 7 replies - 1 through 7 (of 7 total)
-
Forum: Themes and Templates
In reply to: if($comments) returning false alwaysThe reason I’m not just linking comments_template() is because that wasn’t working so I”m hardcoding for debug purposes..
Forum: Developing with WordPress
In reply to: Category links link to wrong categoryAwesome dude, I owe you a beer!!!
THANKS A LOT!
Forum: Developing with WordPress
In reply to: Category links link to wrong category<div id="mainContent"> <div id="categoryPage"> <div id="rss"> <a href="<?php bloginfo('rss2_url'); ?>"><img id="rss_icon" src="<?php bloginfo('stylesheet_directory'); ?>/images/rss_icon_up.jpg" onMouseOver="over('rss_icon','<?php bloginfo('stylesheet_directory'); ?>/images/rss_icon.jpg');" onMouseOut= "out('rss_icon','<?php bloginfo('stylesheet_directory'); ?>/images/rss_icon_up.jpg');"width="26" height="26" alt="Follow Milagro on with RSS"/></a> </div> <?php echo $theTitle; $category = get_the_category(); $theTitle = $category[0]->cat_name; ?> <h1>Category: <a href="http://www.groupemilagro.com/category/<?php echo $theTitle ?>"><?php echo $theTitle ?></a></h1> <?php $args = array( 'category_name' => $theTitle, 'showposts' => '1000', );?> <?php query_posts($args);?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="thumb"> <?php if (has_post_thumbnail()){ the_post_thumbnail(array(86,10000)); } else {?> <a href="<?php the_permalink() ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/def_thumb.png" alt="Groupe Milagro" title="Groupe Milagro" width="86" height="86"/></a> <?php } ?> </div> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php echo the_title(); ?></a></h3> <div class="dateTime"><?php the_time('F jS, Y') ?> by <a href="mailto:<?php the_author_meta('email'); ?>"><?php the_author() ?></a></div> <div class="excerpt"> <?php the_excerpt() ?> </div> <div class="readMore"> <a href="<?php the_permalink() ?>/#comments"> <?php comments_number('No Comments','One Comment','% Comments'); ?></a> | <a href="<?php the_permalink() ?>">Read More</a> </div> <div class="devider"> </div> </div> <?php endwhile; ?> <?php endif; ?> </div> </div>Forum: Themes and Templates
In reply to: Category links link to wrong categoryBump
Forum: Themes and Templates
In reply to: Category links link to wrong categoryBump
Anyone?
Forum: Developing with WordPress
In reply to: Category links link to wrong categoryWell each post could be in multiple categories.. Not sure what you mean otherwise.
Forum: Fixing WordPress
In reply to: Filtering Category problemsI’m also having problems with new posts in my Dashboard, my new posts wont appear. Also, I can’t filter for certain categories in my Categories section in wp-admin.php yet all the posts I’m looking for are in my database under the correct category!
Turns out my code in functions.php:
function exclude_category($query) { if ( $query->index.php ) { $query->set('cat', '-101', '-41'); } return $query; } add_filter('pre_get_posts', 'exclude_category');Was hiding my categories in question from index.php AND edit.php, so I just went and the go RYO ‘Category Visibility’ plugin. Works like a charm, now the other problem.. Any guesses?
Viewing 7 replies - 1 through 7 (of 7 total)