chadrew
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Make my wordpress search engine friendlyRegarding your first question – you should use a meta description tag, at least on your homepage. I explained how to do it in this topic:
http://wordpress.org/support/topic/how-to-change-the-meta-description-of-my-site
For example, this code shows your blog description (from your admin panel) as meta description, on your blog homepage only – since we don’t want every page to have the same description, right?
<?php if ( is_home() ) { ?> <meta name="description" content="<?php echo get_bloginfo( 'description', 'display' ); ?>" /> <?php } ?>Forum: Fixing WordPress
In reply to: Hide Page Title on one page?Yes, try that – but of course, your page ID could be different than 982, so use the real number 🙂
Forum: Fixing WordPress
In reply to: Hide Page Title on one page?This isn’t working on yours because you have
<div class="post">and no post ID in there. You could edit your – page template, was it? – and put this in there<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>then style in your CSS as you described.Forum: Fixing WordPress
In reply to: Title list and one contentI think you could edit single.php and add another loop under the post content, one that would give you post titles only (while excluding the content of the current post).
Forum: Fixing WordPress
In reply to: Width of the textEdit your style.css, change
#content { float: left; width:720px; overflow: hidden; margin:20px; }to
#content { margin:20px; }Forum: Fixing WordPress
In reply to: Put Nofollow,Index tag on all /page/*<?php if ( is_page() ) { ?> <meta name="robots" content="noindex,follow" /> <?php } ?>Put this in your header.php somewhere.
Forum: Fixing WordPress
In reply to: Question about functions and links<a href="<?php echo admin_url('post-new.php');?>">Apples</a>Forum: Fixing WordPress
In reply to: How to Reduce Space Between Paragraphs in TwentyTen?Edit your style.css, change
p { margin-bottom: 18px; }To
p { margin-bottom: 12px; }Or whatever other number.
Forum: Fixing WordPress
In reply to: blog looks "magnified" in IE compared with FF and ChromeLooks like it’s mostly Youtube embed code not being HTML5-compliant or whatever. I wouldn’t worry about it. Sorry I can’t help with the IE problem though. Everything looks the same to me on FF6 and IE9.
You sure it isn’t just text zoom? Press CTRL+0 or set the zoom to 100% via options.
Forum: Fixing WordPress
In reply to: Changing permalink url of one post only. What will happen?As far as I’m aware, WordPress will automatically redirect the old URL to new.
So you want a sort of expandable post list. I think you could get post lists for all your categories in the sidebar first, then hide them using CSS (display: none;). And then use a simple JavaScript toggle which happens when you click a category link, to “unhide” them.
Makes sense? But don’t ask me to actually write it all since I haven’t done anything like this before 🙂
Edit: there are lots of toggle code examples online, like this:
http://circlecube.com/2007/11/javascript-code-to-show-a-hidden-element/
Forum: Fixing WordPress
In reply to: dynamically copy the_title into the_content in a postNormally you can’t use PHP in WordPress posts.
I suppose you could use this plugin:
Forum: Fixing WordPress
In reply to: Numeric entities displaying on home page/excerptsGreat. I realized afterwards that
limit()might be used in other places on your theme, which need special chars converted (like meta description or whatever). I suppose a safer way would be leavinglimit()intact, and creating an identical function without the offending line (call itlimit2or whatever).Then instead of
<p><?php echo limit(150, $excerpt); ?></p>you would use<p><?php echo limit2(150, $excerpt); ?></p>, while other areas of your theme will still use the original with its special char conversion.Forum: Fixing WordPress
In reply to: if no related postsNot sure if it should go before or after wp_reset_query()… But it seems to work for me.
Forum: Fixing WordPress
In reply to: Numeric entities displaying on home page/excerptsTry removing the
$var = htmlspecialchars($var);line.