Digital experiences for all disciplines
Forum Replies Created
-
-
Hi Mohammed,
you’ll have to log in to preview this page. I’ve provided you with my login details in the original message.
Kind regards,
ScottI have attached screenshots of the issue.
I’m updated to the latest theme version.
Kind regards,
ScottAttachments:
You must be logged in to view attached files.Hi,
I just set up a test pagebuilder post with nothing in between the different chart and counter elements and all were working properly.
Could it be something to do with the images in between them?
Cheers,
ScottHi Rui,
Thanks for replying to me.
I have already been using the Custom Excerpt in the Post Meta section for these posts. The issue is that I use a Custom format for my RSS feeds as per the coding I’ve included above and it is obviously not pulling in the Custom Excerpt we input in the Post Meta Section as you suggested.
It appears that the call to “the_content_feed(‘rss2’)” or “the_excerpt_rss” doesn’t pull in this custom excerpt properly. It will work for standard posts. In reference to the code I use above, could you please let me know how to pull this into the feed?
Kind regards,
ScottHi Guys,
In looking into this further it appears the description or summary of the RSS feed items isn’t displaying properly for the Swiftpage builder posts.
I’m pulling this in using the following in the full content RSS feed.
<description><![CDATA[<?php remove_filter('the_excerpt_rss', 'insertThumbnailRSS'); the_excerpt_rss() ?>]]></description> <?php if ( strlen( $post->post_content ) > 0 ) : ?> <content:encoded><![CDATA[<?php the_content_feed('rss2') ?>]]></content:encoded> <?php else : ?> <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded> <?php endif; ?> <?php if(get_the_post_thumbnail()): ?> <media:content url="<?php echo wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?>" medium="image" width="600px" height="400px" max-width="600px" max-height="400px"/> <?php endif; ?> <wfw:commentRss><?php echo esc_url( get_post_comments_feed_link(null, 'rss2') ); ?></wfw:commentRss> <slash:comments><?php echo get_comments_number(); ?></slash:comments> <?php rss_enclosure(); ?> <?php do_action('rss2_item'); ?> </item>
And this is the function I’ve used in the Functions file:
/************* Get the image *****************/ function insertThumbnailRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content = '<p><a href="' . get_permalink( $post_id ) . '">' . get_the_post_thumbnail( $post->ID, 'thumb-image', array( 'style' =>'float:left; margin:0 15px 15px 0; padding:0; border:1px solid #000000; width: 300px; height: auto;') ) . '</a></p>' . $content . '<p><br>Visit <a href="' . get_permalink( $post_id ) . '">Man of Many</a> for the full post.</p>'; } return $content; } add_filter('the_excerpt_rss', 'insertThumbnailRSS');
I note that it won’t pull in the $content for the RSS feed if it’s a swiftpage builder post. Under WP settings > Reading > For each article in a feed, show > I’ve selected Summary.
Clearly the summary isn’t working for the swiftpage builder posts. Anyway to get this working or fix my code?
Thanks David,
Did you end up figuring out which plugin specifically was causing the issue?
Kind regards,
ScottThis reply has been marked as private.This reply has been marked as private.Hi David,
Thanks for responding.
1) I deactivated all of my plugins to see if this solved this issue and it worked. I believe it could be the cacheing plugin WP SUper Cache potentially where it minify’s javascript. Do other users have similar issues? I’ll have to troubleshoot to see which plugin is causing the issue later when I get hom.
2) I have updated to the latest parent theme already? I’m not sure why you may be seeing the option to update?
3) Thanks for this tip. I’ve set it to now be none by default. Is there a way to change this for all the older posts historically?
Thanks,
ScottThis reply has been marked as private.This reply has been marked as private.This reply has been marked as private.Hi Mohammad,
The images are inserted in that fashion.
We used Swift Page Builder and used the Image element to insert the photos. The lightbox setting is turned on for the row of three images.
June 17, 2015 at 11:33 am in reply to: Post Media Display > Standard (above content) vs Full Width #185397THanks! That’s awesome. Works perfectly.
June 17, 2015 at 10:22 am in reply to: Post Media Display > Standard (above content) vs Full Width #185358Hi Mohammad,
Here is the “Standard (above content)” post: http://manofmany.com/fashion/versatile-style-selections-from-glue-store/
Here is the “Full Width” post: http://manofmany.com/action/interview-with-pro-snowboarder-scotty-james/
Kind regards,
Scott
-