-
AuthorPosts
-
September 18, 2015 at 3:19 pm #505584
Hi I’m using a plugin called wp rss aggregator. It’s working fine is i use their own built in shortcode but was hoping i can use the magazine shortcode of enfold to pull posts from different domains. When i try adding the magazine shortcode, i can see that wp rss category as an option. But even after selecting that from the dropdown, the image from each of the posts (posts from different domains) won’t load.
You’ll notice under “latest insights”. The top part is loading a magazine shortcode whereas right below is using the wp rss aggregator shortcode.
Would appreciate if you can help me with this. Thanks so much in advance!
September 18, 2015 at 4:47 pm #505673Hey nbfc!
unfortunately we can’t support any 3rd party plugins and you would need to ask plugin’s author about it.
Regards,
AndySeptember 21, 2015 at 4:48 pm #506512Hi Andy,
Thanks for replying. I know you’ve already mentioned that you guys don’t support 3rd party plugins but just wanted to know if there’s anything on the magazine shortcode that i can change/alter/tweak as the plugin itself is working fine with enfold. if you look at the url below (image attached as well ) and navigate down under “Latest insights”. Right below the magazine shortcode, you’ll notice that the aggregator is working perfectly fine (image thumbnails are all loading along with the posts). The magazine shortcode I believe is also working except that it doesn’t load the thumbnails of the post whereas if i use the aggregator shortcode, everything loads.
Thanks so much in advance!
September 21, 2015 at 4:50 pm #506513Hi!
Your setting the featured images of these custom post types? The thumbnail is using the featured image of the post. If none is set then it will not display.
Best regards,
ElliottSeptember 21, 2015 at 6:20 pm #506591Hi Elliott,
Thanks for the reply. Can you elaborate more what you mean by “setting the featured images of these custom post types?” If I understood what you mean correctly then yes, i have set the featured image option already. Please refer to the screenshot below.
NOTE: Also if you look at my screenshot on post #506512. You’ll notice that the thumbnails are loading properly on each post using the wp rss aggregator shortcode. These thumbnails are the actual featured images on each of the posts.
Thanks again for your help!
September 21, 2015 at 6:32 pm #506601Hi!
I mean when you edit the actual post, https://www.google.com/search?q=Wordpress+set+featured+image&rlz=1C1CHZL_enUS655US655&espv=2&biw=1920&bih=945&source=lnms&tbm=isch&sa=X&ved=0CAYQ_AUoAWoVChMImdKA1saIyAIVw4I-Ch0vuQJX#imgrc=FltQ8ED5Ap8FzM%3A.
It might not be possible if the plugin is grabbing posts via RSS.
Best regards,
Elliott- This reply was modified 9 years, 2 months ago by Elliott.
September 21, 2015 at 6:49 pm #506614Hi Elliott,
Yes, that was done on the actual post itself… And yes, posts are being aggregated via RSS feeds using the wp rss aggregator plugin.
Is there a way to tweak the magazine shortcode so that it can pull the featured image as thumbnails via rss?
Thanks again.
September 21, 2015 at 7:55 pm #506640Hey!
Yes you can do it.
You can assign the first image of the post, to be the featured image.Add the following to your functions.php file
function wpsites_auto_set_featured_image() {
global $post; $featured_image_exists = has_post_thumbnail($post->ID); if (!$featured_image_exists) { $attached_image = get_children( "post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=1" ); if ($attached_image) { foreach ($attached_image as $attachment_id => $attachment) { set_post_thumbnail($post->ID, $attachment_id); } } } } add_action('the_post', 'wpsites_auto_set_featured_image');
Best regards,
BasilisSeptember 21, 2015 at 8:19 pm #506649Hi Basilis
Thanks so much for looking into this. I’ve added the code
function wpsites_auto_set_featured_image() { global $post; $featured_image_exists = has_post_thumbnail($post->ID); if (!$featured_image_exists) { $attached_image = get_children( "post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=1" ); if ($attached_image) { foreach ($attached_image as $attachment_id => $attachment) { set_post_thumbnail($post->ID, $attachment_id); } } } } add_action('the_post', 'wpsites_auto_set_featured_image');
However thumbnail image is still not loading when using the magazine shortcode :(
September 22, 2015 at 8:10 am #506813Hi!
Looking at the plugin’s extension, I found this: http://www.wprssaggregator.com/extension/excerpts-thumbnails/
Maybe, you need to install that plugin to show excerpts and thumbnails? Please contact the plugin author for more info.
Cheers!
IsmaelSeptember 22, 2015 at 8:13 pm #507325Hi Ismael,
Thanks for the suggestion however i’ve already installed that “addon” from the very beginning and still no luck hence i was able to make it work using the default wp rss aggregator shortcode. My goal is to use the magazine shortcode to load the same rss feeds as if i’m using the wp rss shortcode. I just like how so much beautiful the magazine shortcode is rendered as oppose to the plugin’s default.
September 22, 2015 at 9:34 pm #507360Hey!
I think you will have to contact our modifications experts, who will be able to give you a secure solution for the issue, as it is embeding a third party plugin…
Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.