1 post
  • Has been part of the Envato Community for over 3 years
  • Has collected 1+ items on Envato Market
if you need to have title and description under your photos in template flow this is solution who can help you : first find the file imageFlowXML.php and then replace the code by : <?php if(file_exists('../../../wp-load.php')) { require_once( '../../../wp-load.php' ); } else { require_once( '../../../../wp-load.php' ); } if(!isset($_GET['gallery_id']) OR empty($_GET['gallery_id'])) { $pp_homepage_slideshow_cat = get_option('pp_homepage_slideshow_cat'); $homepage_items = -1; $args = array( 'post_type' => 'attachment', 'numberposts' => $homepage_items, 'post_status' => null, 'post_parent' => $pp_homepage_slideshow_cat, 'order' => 'ASC', 'orderby' => 'menu_order', ); $all_photo_arr = get_posts( $args ); } else { $portfolio_items = -1; $args = array( 'post_type' => 'attachment', 'numberposts' => $portfolio_items, 'post_status' => null, 'post_parent' => $_GET['gallery_id'], 'order' => 'ASC', 'orderby' => 'menu_order', ); $all_photo_arr = get_posts( $args ); } header("Content-type: text/xml"); echo '<?xml version="1.0" encoding="utf-8" ?> <bank>'; foreach($all_photo_arr as $photo) { $full_image_url = wp_get_attachment_image_src( $photo->ID, 'full' ); $small_image_url = wp_get_attachment_image_src( $photo->ID, 'large' ); $img_title = apply_filters('the_title', $photo->post_title); $img_description = apply_filters(' post_content', $photo->post_content); echo '<img />'; echo '<src>'.$small_image_url[0].'</src>'; echo '<link>'.$full_image_url[0].'</link>'; echo '<title>'.$img_title.'</title>'; echo '<caption>'.$img_description.'</caption>'; echo ''; } echo '</bank>'; ?>

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes