Thumbnail informations (meta)

Try the following code inside the loop and modify it as per requirement. $thumb_id = get_post_thumbnail_id(); echo ‘Name=”. get_post_field( “post_name’, $thumb_id ).'<br />’; echo ‘Alt=”. get_post_meta( $thumb_id, “_wp_attachment_image_alt’, true ).'<br />’; echo ‘Title=”. get_the_title( $thumb_id ).”<br />’; echo ‘Caption = ‘. get_post_field( ‘post_excerpt’, $thumb_id ).'<br />’; echo ‘Description = ‘. get_post_field( ‘post_content’, $thumb_id ).'<br />’; … Read more

Slideshow missing when page loads? [closed]

The name home.php is reserved for use by the Template Hierarchy as the Blog Posts Index. To create a custom template for the Site Front Page, use front-page.php. Another issue: your slideshow jQuery script needs to have a no-conflict wrapper, and should not execute until the page is loaded. Instead of this: $(function() …you need … Read more

Shortcode append to the the_content()

What your asking for can’t be done using shortcodes. <article> isn’t a part of the content, its part of the theme and it ‘contains’ the content. Thus shortcodes cannot modify it or move those tags around. Shortcodes by definition are part of the content, so anything they add on the end is also a part … Read more

PHP Call to External Database

I can’t bee too specific answering your question, but you can certainly use a $wpdb instance to access another database: $db = new wpdb(‘user’, ‘password’, ‘dbname’, ‘dbhost’); $results = $db->get_results(‘..query..’);