Quicktag insert multiple lines

This is the format you need to follow, //double quotes require escaping var your_html = “<div class=\”one-half first\”>1st</div>\n<div class=\”one-half\”>2nd</div>\n<div class=\”clear-line\”></div>”; //single quotes do not require escpaing var your_html=”<div class=”one-half first”>1st</div>\n<div class=”one-half”>2nd</div>\n<div class=”clear-line”></div>”; QTags.addButton( ‘my_tag’, ‘Multi Line’, your_html, ” ); I’d just store my html in a var (eg. your_html) then pass that to your QTags.addButton … Read more

Facebook share button help

You can try using this: <?php $title = get_the_title( $post_id ); $url = urlencode( get_permalink( $post_id ) ); ?> <a class=”fb” target=”_blank” href=”http://www.facebook.com/sharer.php?s=100&pFacebook share button help=<?php echo $title; ?>&p[url]=<?php echo $url; ?>”>Share</a>

unsual theme / interface

You can simply use your index.php as index page. Add a default loop and style the output to your needs. Then – in your single.php file – just add links to the next/previous post using the template tag: get_next_posts_link() and get_previous_posts_link(). That’s the default way in WordPress to link to other posts/pages. To make a … Read more

clicking on page title

usually the code that makes a link to a title in WordPress looks something like this <a href=”https://wordpress.stackexchange.com/questions/66152/<?php the_permalink(); ?>”><php the_title(); ?></a> if you were to change it to this <?php the_title(); ?> it would only display the title. It would remove the link. Does that answer your question?

Parent pages not found with pretty permalinks

Looks like you’ve sorted the site out. I had the same problem recently working on a WordPress site someone else developed. The issue was they had registered custom post types and taxonomies with WordPress reserved slugs, like year and term for example. Also avoid registering custom post types and taxonomies that conflict with page or … Read more