- Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236
barnardinho
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Hello
I’m trying to find out how to avoid the duplication of images at the top of a post – which happens if I’ve set a featured image for the post. Most critically, I want to remove that duplication when using a gallery.
I’m no php boff, but if I’m pointed to the file and line that I need to change I’m sure I’ll be able to do that without bringing down the whole internet.
thanks in advance
AdvertismentDeprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236garygo
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220I have the same problem. WP should provide an option to hide/show the featured image in the gallery, which is a very basic thing to do. Currently there is not much we can do with the theme, unless we tackle the JQuery and its function files to modify the codes a little bit and then the problem can be manually solved. Of course One Designs can update Minimatica to the same.
There is another basic thing for Minimatica to do: the ability to paginate the imbeded gallery, or we will end up having all our images on one single post page!!
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236Jon
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Add This to loop-single.php, after </article><!– .post –>
[code]<?php $prev_image_link = get_post_meta($post->ID, \\\\\\\”_prev_image_link\\\\\\\”, true);
if($prev_image_link == \\\\\\\’none\\\\\\\’ || $prev_image_link == \\\\\\\’lightbox\\\\\\\’)
{
$prev_image_link = array($prev_image_link);
}
else
{
$prev_image_link = \\\\\\\’_external\\\\\\\’;
}if(!$gallerypage) $prev_image_link = array(\\\\\\\’lightbox\\\\\\\’);
//get preview image
$big_prev_image = kriesi_post_thumb($post->ID, array(\\\\\\\’size\\\\\\\’=> array(\\\\\\\’L\\\\\\\’),
\\\\\\\’wh\\\\\\\’ => $k_option[\\\\\\\’custom\\\\\\\’][\\\\\\\’imgSize\\\\\\\’][\\\\\\\’L\\\\\\\’],
\\\\\\\’display_link\\\\\\\’ => $prev_image_link,
\\\\\\\’linkurl\\\\\\\’ => array (\\\\\\\’XL\\\\\\\’,\\\\\\\’_preview_big\\\\\\\’)
));echo $big_prev_image;?>[/code]
I tested it, added a featured image which shows in the category arcive but does not show up on the actual post. Shuold work for you.
If my code doesn’t get across find it[url=http://www.kriesi.at/support/topic/how-to-hide-featured-image-in-single-post-pages]Here[/url]Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236Jon
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236Jon
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220I just discovered an issue with this fix. I have a multi page posts with a slideshow on the 2nd page. Since I added the code the slideshow won’t load. Hopfully no issues otherwise.
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236Jon
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220If you want to have multi page posts you can opt for the standard WP gallery shortcode and select the standard post format instead of the gallery format. It would be nice if Minimatica used shortcode too, but this is a good workaround.
You must be logged in to reply to this topic.