sincewelastspoke
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Client update the sidebar?Genius!
Many thanks ashfame, will look into this.
Any other suggestions?
Forum: Fixing WordPress
In reply to: Remove the ‘#’ from my the_title() ?Sorry, to make it clearer, I’d just like to remove it in a hyperlink In The Loop.
Forum: Fixing WordPress
In reply to: Display 2 comments on Home PageThanks guys.
Managed to find a solution through a blog : https://www.theenglishguy.co.uk/2009/05/17/display-comments-on-index-page-post-in-wordpress/
Thanks again folks!
Forum: Fixing WordPress
In reply to: Display 2 comments on Home PageAnyone? Bueller?
Forum: Fixing WordPress
In reply to: Display 2 comments on Home PageAny ideas?
Many thanks for any pointers.
Forum: Fixing WordPress
In reply to: Bolt on existing PHP script to my WP site?Anyone?
Thanks for any advice.
Forum: Fixing WordPress
In reply to: Displaying posts – categorising by months?Anyone?
Forum: Fixing WordPress
In reply to: Displaying posts – categorising by months?Does anyone know if this is possible?
I want to list the post title under each respective month name. So I can then style each month name…
- September - Post 1 from Sept - Post 2 from Sept - October - Post 1 from Oct - Post 2 from Oct - November - Post 1 from Nov - Post 2 from Nov
Thanks for any assistance.
Forum: Fixing WordPress
In reply to: Ignore a directory with htaccess ?Anyone?
Forum: Fixing WordPress
In reply to: Ignore a directory with htaccess ?Has anyone done this before. I googled it, but the solutions were not useful for my case.
I just want to ignore the ‘zenphoto’ folder that is being affected by my .htaccess file.Forum: Fixing WordPress
In reply to: WP thinks my ‘index.php’ is a Category page^^ ^^ ^^
Please ignore, now fixed, just re-activated the All in One SEO Pack ??
Forum: Fixing WordPress
In reply to: Javascript / WP while loop issue…In case anyone is interested, managed to resolve it ??
var fcontent=new Array(); begintag='<div class="two">'; //set opening tag, such as font declarations </script> <?php query_posts('cat=5&showposts=' . $limit=3 . ''); ?><?php $i = 0; while (have_posts()) : the_post(); ?> <script type="text/javascript"> fcontent[<?php echo $i;?>]='<img src="<?php $supporting_image=get_post_meta( $post->ID, 'thumbnail', true ); if (''!=$supporting_image) { echo $supporting_image; } ?>" width="115" height="77" alt="" class="newspic" /><div class="calendarbit"><span class="day"><?php the_time('j'); ?></span><br /><span class="month"><?php the_time('M'); ?></span></div><p class="titlebit"><?php the_title('<span style="font-weight:bold"><a href="category/news">', '</a></span>'); ?><br /><?php the_content_rss('', TRUE, '', 10); ?><a href="category/news"><img src="images/news_icon.jpg" alt="" width="9" height="9" /></a></p>' </script> <?php $i++; ?> <?php endwhile;?> <script type="text/javascript"> closetag='</div>';
Thanks for taking a look!
Forum: Fixing WordPress
In reply to: Javascript / WP while loop issue…Is this a case for….WP-Advanced?
I changed
'showposts=1&cat=5'
to'cat=5&showposts=' . $limit=3 . ''
and now it shows 3 posts great!!But how do I then put each post content into an fcontent[] element ?
So you’d have:
fcontent[0] = ‘news item 1 info’
fcontent[1] = ‘news item 2 info’
fcontent[2] = ‘news item 3 info’Any ideas would be greatly appreciated. I’m tearing my hair out on this one.
Forum: Fixing WordPress
In reply to: Display sub-categories of category?That bit of code is displaying the Main Category ID, but I need to find a way to store the ID value in a variable.
Anyone?
Forum: Fixing WordPress
In reply to: Display sub-categories of category?Thanks for the reply.
OK, used this:
<?php echo(get_category_parents($cat, TRUE, ' » ')); ?>
which gives me Main Category >> Subcategory
However, I need to use the Main Category ID and I can’t seem to retrieve it from that function?
Thanks for any advice.