Ganners
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to display the date of the last commentYou’ll want something like (this isn’t tested)
<?php $PostID = get_the_ID(); $comments = get_comments('post_id=$PostID&number=1'); foreach($comments as $comment) : print "Last reviewed on". $comment->date. "."; endforeach; ?>
I don’t have time to test if it works but if it doesn’t reference get_comments
Forum: Fixing WordPress
In reply to: Help!!! my site's brokenCopy the first 15 lines of code and I’ll take a look, it isn’t anything serious.
Forum: Fixing WordPress
In reply to: editing words in the 'navigation bar' help!!You should be able to change that by simply changing your Site Title in the General Settings part of the admin panel.
Forum: Fixing WordPress
In reply to: editing words in the 'navigation bar' help!!Going to need more information to help you.
Link to the site first?Forum: Fixing WordPress
In reply to: error creating visit counterIt could be that your single page has a next button to go to the next post and perhaps the ID for that is being pulled and executed, but I’d have to see much more of the code to try and work it out.
Forum: Fixing WordPress
In reply to: Removing crap li tagsThe line which works for me is:
echo preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i', '<li$1><a$2><span>$3</span></a>', wp_list_pages('echo=0&orderby=name&exclude=181&title_li=&depth=1'));
Then I surround it with ul tags
Forum: Fixing WordPress
In reply to: where are the font settingFonts are set in your theme, so if you open up your theme and then open up style.css the global font setting will be under body.
Forum: Fixing WordPress
In reply to: how to change www.example/wordpress to www.example/blogSo did you change the folder containing all of your wordpress files to blog? I would assume that would solve it, then after that have a look at your general settings and update your URL and site address if need be.
Forum: Fixing WordPress
In reply to: move date below excerptOn index I guess your function
<?php rev_loop(); ?>
calls your loop, so I’m guessing if you look in your functions.php you’ll find the code there with the excerpt and date.
Could be wrong, I’ve never seen the rev_loop function before though.
Forum: Fixing WordPress
In reply to: Cut off long post_titleNo problem! Happy to help.
Forum: Fixing WordPress
In reply to: Cut off long post_titleSorry just realised after i posted! Replace it all with this:
if ( strlen($info[‘post_title’]) > 35)
{
$PostTitle = substr($info[‘post_title’], 0, 35);
print $PostTitle. “…”;
}else
{
print $info[‘post_title’];
}Forum: Fixing WordPress
In reply to: Cut off long post_titleChange print $PostTitle;
with print $PostTitle. “…”;
Forum: Fixing WordPress
In reply to: dynamic vertical sidebar accordion menu?It would be messy in terms of, if I were to make this from scratch, i’d have another sub list under the h3. Its really simple stuff though. An example where i’ve used it (not on a wordpress site but it demonstrates the jquery if you viewsource)
$('.NavLink').click(function () { $('#served-menu ul li').children('ul').slideUp('slow'); if ($(this).children('ul').is(":visible")) { $(this).children('ul').slideUp('slow'); } else { $(this).children('ul').slideDown('slow'); } });
Thats the code for it, its just making child elements slide and hide and such.
Forum: Fixing WordPress
In reply to: Cut off long post_titleJust change Print $info[‘post_title’]; to something like
$PostTitle = substr($info[‘post_title’], 0, 35);
print $PostTitle;Forum: Fixing WordPress
In reply to: Having Problems Changing BackgroundFind the CSS for .body_color {
and delete the background element, it is set to silver.