[Plugin: SWT] New default custom field transfer post to mother blog.
-
Hey.
When SWT gets posts from sub blogs it adds custom fields(blogid, permalink & thumbnail_html). This works great and i use the thumbnail_html for my infinitecarrusel. Tough when displaying posts in index.php(theme) i always show the featured image(thumbnail image) first in a nice picture frame before post content.
What i need is too get SWT too add another default custom field that looks very much like thumbnail_html tought with other <img> attributes(because i need this picture too be bigger), so basically i need to too generate another customfield, lets say thumbnail_html_big, to the posts that get transfered to the main blog.
i looked trough sitewide-tags.php and found this
$global_meta = array(); $global_meta['permalink'] = get_permalink( $post_id ); $global_meta['blogid'] = $org_blog_id = $wpdb->blogid; // org_blog_id $meta_keys = apply_filters( 'sitewide_tags_meta_keys', get_sitewide_tags_option( 'tags_blog_postmeta', array() ) ); if( is_array( $meta_keys ) && !empty( $meta_keys ) ) { foreach( $meta_keys as $key ) $global_meta[$key] = get_post_meta( $post->ID, $key, true ); } unset( $meta_keys ); if( get_sitewide_tags_option( 'tags_blog_thumbs' ) && ( $thumb_id = get_post_meta( $post->ID, '_thumbnail_id', true ) ) ) $global_meta['thumbnail_html'] = wp_get_attachment_image( $thumb_id );
Is this the right place too make SWT generate another custom field?
- The topic ‘[Plugin: SWT] New default custom field transfer post to mother blog.’ is closed to new replies.