dcritic
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Atahualpa beats Thesis and is free.The Thesis theme is AWESOME!!!
The reason you guys hate it is because it’s a DIY theme, not change options only theme… Almost all of my websites use it!
Forum: Plugins
In reply to: How to make a string a slug?thx
Forum: Fixing WordPress
In reply to: wp_dropdown_categories using a stored variableIt’s working now. What can I use instead of htmlspecialchars(); to prevent XSS via the form for the widget?
Forum: Plugins
In reply to: Category ManagementThis helped me a lot. Sorry for necroposting.
Forum: Fixing WordPress
In reply to: Multiple categories on a category pagePlease help if possible. Thx.
Forum: Fixing WordPress
In reply to: Multiple categories on a category pageOkay, for some reason it displays all of my posts on each category. If you go to USA then go to Louisiana, it displays the same: no travel guides (yes I used travel guides and the categories didn’t work) and every food post. Here’s my loops:
$cat = ",".get_query_var('cat');?> <?php if (have_posts()) : ?> <div id='page'> <div class="post" id="restaurants"> <fieldset> <legend class='title'>Restaurants <?php echo $cat; ?></legend> <div class="entry"> <table> <tr><td width="200"><b>Restaurant Name</b></td> <td><b>Rating</b></td> <td><b>Price</b></td> <td><b>Ambiance</b></td> <td><b>Service</b></td> <td><b>Taste</b></td> <td><b>Website</b></td> </tr> <?php $restaurants = new WP_Query("cat=6".$cat); while ($restaurants->have_posts()) : $restaurants->the_post(); ?> <tr> <td><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></td> <td><?php echo c2c_get_custom('rating', '', '', '--'); ?></td> <td><?php echo c2c_get_custom('price', '', '', '--'); ?></td> <td><?php echo c2c_get_custom('ambiance', '', '', '--'); ?></td> <td><?php echo c2c_get_custom('service', '', '', '--'); ?></td> <td><?php echo c2c_get_custom('taste', '', '', '--'); ?></td> <td><a href="https://<?php echo c2c_get_custom('website', '', '', '--'); ?>"><?php echo c2c_get_custom('website', '', '', '--'); ?></a></td> <td><?php edit_post_link('Edit', '', ' '); ?></td> </tr> <?php endwhile; ?> </table> </div> </div> <div class="post" id="travel"> <fieldset> <legend class='title'>Travel Guides</legend> <div class="entry"> <?php $travel = new WP_Query("cat=522".$cat); while ($travel->have_posts()) : $travel->the_post(); ?> <tr> <td><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></td> </tr> <?php endwhile; ?> </table> </div> </div> </div>
Forum: Fixing WordPress
In reply to: Multiple categories on a category pageNever mind; forgot a variable.
Forum: Fixing WordPress
In reply to: Multiple categories on a category pageUh… wait. There’s a little bug. When I use this little piece of code the rows go on and on. Check on https://www.dcritic.com and click on USA.
Here’s the loop I’m using:<?php $restaurants = new WP_Query("cat=6&showposts=1"); while ($restaurants->have_posts()) : the_post(); ?> <tr> <td><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></td> <td><?php echo c2c_get_custom('rating', '', '', '--'); ?></td> <td><?php echo c2c_get_custom('price', '', '', '--'); ?></td> <td><?php echo c2c_get_custom('ambiance', '', '', '--'); ?></td> <td><?php echo c2c_get_custom('service', '', '', '--'); ?></td> <td><?php echo c2c_get_custom('taste', '', '', '--'); ?></td> <td><a href="https://<?php echo c2c_get_custom('website', '', '', '--'); ?>"><?php echo c2c_get_custom('website', '', '', '--'); ?></a></td> <td><?php edit_post_link('Edit', '', ' '); ?></td> </tr> <?php endwhile; ?>
Note that I’m using a custom fields plugin.
Forum: Fixing WordPress
In reply to: Multiple categories on a category pageThank you very much for your support! ??
Forum: Fixing WordPress
In reply to: Multiple categories on a category pageIf I use this, is there a way to make the used categories not show up on the side?