Converting the_content string to an array?

Filter ‘img_caption_shortcode’. You get three arguments: an empty string, the attributes (including the attachment id), and the caption content. If you return anything but an empty string WordPress will print your return value instead of its own code. See wp-includes/media.php for details. Another option: hijack the caption handlers and create your own output or change … Read more

Custom Post Type content isn’t shown

You need to register you post type with the has_archive argument to get an archive page at /<post_type_slug>/. Eg. <?php add_action(‘init’, ‘wpse70469_register’); function wpse70469_register() { $args = array( ‘rewrite’ => array(“slug” => “vita”), ‘show_in_nav_menus’ => true, ‘has_archive’ => true, // this makes the archive page work. ); register_post_type(‘wpse70469_type’, $args); } You might want read through … Read more