gbaka
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Problem reducing page title size in Shaken Gridyou can remove the h1 or h2 tags around the the code that produces the title that might change them back to normal size since the code for there size is probably in the css file
Forum: Themes and Templates
In reply to: I need HELP with creating a Blank PageJust create your php file, put it into the theme file your currently running on your site and place this code inside inside
<?php /* Template Name: Blank Page */ ?>
then go to create new page on the dashboard and under template pick the blank page option instead of default template and name the page.
Forum: Themes and Templates
In reply to: allow user to add custom code to existing postnot really looking for ranks just something that i could add meta data but thanks
Forum: Themes and Templates
In reply to: allow user to add custom code to existing postthis for the front end and when i meant custom code i meant meta data so say a register user can add a rank to the post by entering a value for the post in the front end so they dont have to go to the dashboard to do it
Forum: Themes and Templates
In reply to: trying paginate category listfigured it out
Forum: Themes and Templates
In reply to: trying paginate category listcan’t find the that function in that plugin hmmm
Forum: Themes and Templates
In reply to: trying paginate category listwhat plugin?
Forum: Themes and Templates
In reply to: trying paginate category listwait is the function wp_paginate from a plugin?
Forum: Themes and Templates
In reply to: trying paginate category listyea pretty sure this won’t do it as paging a list of categories is not that simple, and this pages post but thanks for the help really appreciate it
Forum: Themes and Templates
In reply to: trying paginate category listwp category list() trying to paginate that, or something similar so I’m not paginating any post at all
Forum: Themes and Templates
In reply to: trying paginate category listyea but paginating the a list of categories is the tricky part
Forum: Themes and Templates
In reply to: retrieve first post in category page?well I’m just starting a new loop so the code i gave you is kinda irrelevent but thanks I’ll try it
– it worked perfectly thanks alot, this way is alot easier than altering the category so it allowed me to rate it thanks.Forum: Themes and Templates
In reply to: retrieve first post in category page?<?php get_header(); ?> <?php if (have_posts()) : ?> <div class="post"> <table class="category_description"> <tr><td rowspan="2" valign="middle"> <div class="category_image"></div> </td> <td height="120px" class="series_info"> <span style="font-size:16px; font-family:Arial; color:#1569C7"><strong>Series Information</strong></span> <table> <tr> <td><span style="font-size:14px; font-family:Arial; color:#A4A4A4"><strong>Title:</strong> <?php single_cat_title(''); ?></span></td> </tr> <tr> <td><span style="font-size:14px; font-family:Arial; color:#A4A4A4"><strong>Genre:</strong> Currently not availible</span> </td> </tr> </table> </td> </tr> <tr> <td class="series_description"> <span style="font-size:16px; font-family:Arial; color:#1569C7"> </td> </tr> </table> </div> <?php $titlecount = 0; $titlecount2 = 0; $titlecount3 = 0; $episodecount = 1; $episodecount2 = 1; ?> <?php while (have_posts()) : the_post(); ?> <?php $all_the_tags = has_tag(); if (!($all_the_tags)){ ?> <?php $episodecount++; ?> <?php } else { ?> <?php if ($all_the_tags); $all_the_tags = get_the_tags(); foreach($all_the_tags as $this_tag) { if ($this_tag->name =="nova") { ?> <?php $episodecount2++; ?> <?php } else { // it's neither, do nothing ?> <!-- not tagged as one or the other --> <? } } } ?> <?php endwhile; ?> <?php $posts=query_posts($query_string . '&order=dsc'); while (have_posts()) : the_post(); ?> <?php $all_the_tags = has_tag(); if (!($all_the_tags)): ?> <?php $episodecount--; ?> <?php $titlecount++; if($titlecount == 1): ?> <table width="635px" class="category_posts"> <tbody> <tr style="border-left:1px solid #D1D1D1; border-top:1px solid #D1D1D1; border-right:1px solid #D1D1D1;"> <th class="category_td" style="width:15%; color: #34A9D6; font-size: 13px; text-align: center;"><strong>Episode</strong></th> <th class="category_td" style="width:70%; color: #34A9D6; font-size: 13px; text-align: center;"><strong>Title</strong></th> <th class="category_td" style="width:15%; color: #34A9D6; font-size: 13px; text-align: center;"><strong>Views</strong></th> </tr> </tbody> </table> <?php endif; ?> <?php if($titlecount%2 == 0) { ?> <table width="635px" class="category_posts2"> <tr> <td class="category2_td1" style="width:15%;"><span class="episode"><a href="<?php the_permalink() ?>" rel="bookmark" >Episode <?php echo $episodecount ?></span></td> <td class="category2_td2" style="width:70%;"><span class="subtitle"><a href="<?php the_permalink() ?>" title="<?php echo the_subtitle(); ?>" rel="bookmark" ><?php echo the_shorten_subtitle(); ?></a></span></td> <td class="category2_td3" style="width:15%;"><?php the_views(); ?></td> </tr> </table> <?php } else { ?> <table width="635px" class="category_posts2"> <tr> <td class="category_td1" style="width:15%;"><span class="episode"><a href="<?php the_permalink() ?>" rel="bookmark" >Episode <?php echo $episodecount ?></a></span></td> <td class="category_td2" style="width:70%;"><span class="subtitle"><a href="<?php the_permalink() ?>" title="<?php echo the_subtitle(); ?>" rel="bookmark" ><?php echo the_shorten_subtitle(); ?></a></span></td> <td class="category_td3" style="width:15%;"><?php the_views(); ?></td> </tr> </table> <? } ?> <?php endif; ?> <?php endwhile; ?> <div style="margin-top: 10px"> <?php while (have_posts()) : the_post(); ?> <?php $all_the_tags = has_tag(); if ($all_the_tags): ?> <?php if ($all_the_tags); $all_the_tags = get_the_tags(); foreach($all_the_tags as $this_tag) { if ($this_tag->name =="nova") { ?> <?php $titlecount2++; $episodecount2--; if($titlecount2 == 1): ?> <table width="635px" class="category_posts"> <tbody> <tr style="border-left:1px solid #D1D1D1; border-top:1px solid #D1D1D1; border-right:1px solid #D1D1D1;"> <th class="category_td" style="width:15%; color: #34A9D6; font-size: 13px; text-align: center;"><strong>OVA</strong></th> <th class="category_td" style="width:70%; color: #34A9D6; font-size: 13px; text-align: center;"><strong>Title</strong></th> <th class="category_td" style="width:15%; color: #34A9D6; font-size: 13px; text-align: center;"><strong>Views</strong></th> </tr> </tbody> </table> <?php endif; ?> <?php if($titlecount2%2 == 0) { ?> <table width="635px" class="category_posts2"> <tr> <td class="category2_td1" style="width:15%;"><span class="episode"><a href="<?php the_permalink() ?>" rel="bookmark" >OVA <?php echo $episodecount2 ?></span></td> <td class="category2_td2" style="width:70%;"><span class="subtitle"><a href="<?php the_permalink() ?>" title="<?php echo the_subtitle(); ?>" rel="bookmark" ><?php echo the_shorten_subtitle(); ?></a></span></td> <td class="category2_td3" style="width:15%;"><?php the_views(); ?></td> </tr> </table> <?php } else { ?> <table width="635px" class="category_posts2"> <tr> <td class="category_td1" style="width:15%;"><span class="episode"><a href="<?php the_permalink() ?>" rel="bookmark" >OVA <?php echo $episodecount2 ?></a></span></td> <td class="category_td2" style="width:70%;"><span class="subtitle"><a href="<?php the_permalink() ?>" title="<?php echo the_subtitle(); ?>" rel="bookmark" ><?php echo the_shorten_subtitle(); ?></a></span></td> <td class="category_td3" style="width:15%;"><?php the_views(); ?></td> </tr> </table> <? } ?> <?php } else if (($this_tag->name =="Mov")||($this_tag->name =="mov")) { ?> <?php $titlecount3++; if($titlecount3 == 1): ?> <table width="635px" class="category_posts"> <tbody> <tr style="border-left:1px solid #D1D1D1; border-top:1px solid #D1D1D1; border-right:1px solid #D1D1D1;"> <th class="category_td" style="width:85%; color: #34A9D6; font-size: 13px; text-align: center;"><strong>Title</strong></th> <th class="category_td" style="width:15%; color: #34A9D6; font-size: 13px; text-align: center;"><strong>Views</strong></th> </tr> </tbody> </table> <?php endif; ?> <table width="635px" class="category_posts2"> <tr> <td class="category_td2" style="width:85%;"><span class="subtitle"><a href="<?php the_permalink() ?>" rel="bookmark" ><?php echo ShortenTitle(the_subtitle()); ?></a></span></td> <td class="category_td3" style="width:15%;"><?php the_views(); ?></td> </tr> </table> <?php } else { // it's neither, do nothing ?> <!-- not tagged as one or the other --> <? } } ?> <?php endif; ?> <?php endwhile; ?> </div> <p><?php next_posts_link('? Older Entries') ?> <?php previous_posts_link('Newer Entries ?') ?></p> <?php else : ?> <div class="post"> <h2>Not Found</h2> <p>Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> </div> <?php endif; ?> <?php get_sidebar(); ?> <?php get_footer(); ?>
Forum: Themes and Templates
In reply to: retrieve first post in category page?not a particular category, every category in the category page, so for example in the foods category page it retrieves its first post than in the wine category page it retrieves that first post and so on and so on… till it does that for all the category pages.
Forum: Themes and Templates
In reply to: retrieve first post in category page?hmm doesn’t seem to work also this is in the category page so I’m not specifying specific categories.