add custom wordpress attribute for generate thumbnail in xml feed - wordpress

I want to create an XML product feed for some external services
so I using WordPress plugin to generate that feed.
the problem is that the plugin using the main image for the feed.
so I want to add the custom attribute to change that main product image to thumbnail product image
the plugin and woocommerce doesn't have thumbnail attribute by default
I'm using WooCommerce Product Feed Plugin PRO WordPress plugin

Related

show product catalog in wordpress not for e-commerce

I want to build a website that view product catalog but not for e-commerce. and product category is shown in sidebar like this picture. which plugin or custom thing should I use?
You can have that with an e-commerce theme using woocommerce plugin, you will be able to add your products and specify their categories (categories can be displayed using a widget, most e-commerce themes have that). To transform the shop into a catalog (without cart functionality) add one of the following plugins :
Catalog Visibility Options that is a great one because it's made
by Woocommerce team, it adds new options to Woocommerce settings. This plugin is a paid one.
YITH WooCommerce Catalog Mode

WooCommerce plugin integration with custom theme

I have my own html to display all products inserted in WooCommerce. But I am unable to show it in my styling. I have searched it but unable to find any good solution.
Please help.
You have to learn about wordpress templates hierarchy that all files how it works?
https://developer.wordpress.org/themes/basics/template-hierarchy/
Suppose You want to create single page of product then create a new file into your theme with name single-product.php then single product url automatically render this file.
As same you want to create shop page (Where all products should shown) then create a file into your theme with name archive-product.php then shop page automatically render this File
For add to Cart functionality there are lots of plugin that can be used.

WordPress generated thumbnail attributes show alt="{{alt}}" and title="{{title}}"

How to fix WordPress generated image thumbnail attributes showing alt="{{alt}}" and title="{{title}}"? on WooCommerce single product page 80x80 thumbnails using Enfold theme ?

I want to create custom gallery but i want to fetch photos from nextGen gallery in my wordpress site?

I am using NextGen Gallery in my wordpress site and i want to fetch images from nextGen Gallery as carousal in my index page. i am using following shortcode for this solution. But This does not work and show that gallery not found??
i am applying this code
do_shortcode('[scrollGallery id=2 start=5 autoScroll=true thumbsdown=true]');
You are applying the wrong parameter for the nextgen gallery. to import galleries using the nextgen gallery shortcode you need to use the following parameter "ngg_images".
so to pull up your gallery with the gallery id of 2 you would do the following
echo do_shortcode('[ngg_images gallery_ids="2" display_type="photocrati-nextgen_basic_slideshow" gallery_width="600" gallery_height="400"]');
Here is a link to the nextgen gallery website which explains all of the available parameter options.
http://www.nextgen-gallery.com/nextgen-gallery-shortcodes/

External Link from Featured Image- Wordpress

How would I add a custom meta box to my Wordpress theme that allows users to add a link to an external page from the featured image? I have a slider set up that pulls featured images from a custom post type and I'd like to be able to add an external link from that.
Thanks!
take a look at this
http://codex.wordpress.org/Function_Reference/add_meta_box

Resources