Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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!

    #505673

    Hey nbfc!

    unfortunately we can’t support any 3rd party plugins and you would need to ask plugin’s author about it.

    Regards,
    Andy

    #506512

    Hi 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 magazine shortcode screenshot) 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!

    #506513

    Hi!

    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,
    Elliott

    #506591

    Hi 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.
    featured image activated

    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!

    #506601

    Hi!

    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, 3 months ago by Elliott.
    #506614

    Hi 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.

    #506640

    Hey!

    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,
    Basilis

    #506649

    Hi 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 :(

    #506813

    Hi!

    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!
    Ismael

    #507325

    Hi 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.

    #507360

    Hey!

    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

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.