Garbled HTML pulled for page description “caption id=attachment…”

That’s shortcode with the brackets stripped. And since shortcode is either rendered or removed before output, it suggests that these descriptions are not merely being “scraped” from your site, but provided by a WordPress plugin or locally-hosted script. I would first check your theme is not “leaking” raw shortcode; do you see something like [caption…] … Read more

Add number in increment of one to DIV ID

the code should be instead add_shortcode( ‘faq’, ‘wpse105856_shortcode_callback’ ); function wpse105856_shortcode_callback( $atts ) { extract( shortcode_atts( array( ‘category’ => ” ), $atts ) ); $args = array( ‘numberposts’ => -1, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’, ‘post_type’ => ‘faq’ ); if ( ! empty( $category ) ) { $args[‘category_name’] = $category; }; $posts = get_posts( … Read more

WYSIWYG with HTML source?

Why not automate the move from Drupal to WP? I think WP will fix some of the P tag issue during the upload. http://codex.wordpress.org/Importing_Content#Drupal If that isn’t an option, I think WP is using br’s instead of full new p. From the visual editor, I’d delete the copied break altogether and “enter” a new one.

How to get all the terms of a post

Well to print each term you could loop through each object and echo the name and description foreach ($terms as $theterm) { echo $theterm->name . ” ” . $theterm->description; } Is this what you are looking for? [EDIT] Updated the answer

Link opens a new website instead of my own

I have copied the generated code from your website. The new window happens because of the target=”_blank” in the anchor a tag. If you can check the widget code/settings you would know if you need to change PHP code or is configurable. <div class=”socialmedia-buttons smw_left”> <a href=”https://www.facebook.com/pages/Volunteering-News/391260697641619″ rel=”nofollow” target=”_blank”> <img width=”32″ height=”32″ src=”http://www.volunteeringnews.com/wordpress/wp-content/plugins/social-media-widget/images/cutout/32/facebook.png” alt=”Follow Us … Read more