• Resolved brandsforless

    (@brandsforless)


    Good morning all,

    my affiliate partner require me that in my feed all the aditional images must follow the tag
    <additional_imageurl>
    <image1>…</image1>
    <image2>…</image2>
    …..
    <imageX>…</imageX>
    </additional_imageurl>
    My tag now <ImageURL>{Image URL}</ImageURL> include line to line all my image without seperate the aditional images.
    Any help on this?

    Thank you in advance

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter brandsforless

    (@brandsforless)

    UPDATE

    it will be also acceptable for my affiliate partner the wp all export retrive only the first link image instead of the whole images.

    So the tag should be like this
    <ImageURL>{Image URL}</ImageURL> include only the first image of the feed.

    Thank you again in advance.

    • This reply was modified 5 years, 7 months ago by brandsforless.
    Plugin Author WP All Import

    (@wpallimport)

    Hi @brandsforless

    You can use custom PHP functions in the export for this: https://d.pr/TD4D5j. For example, if you only want to export the 1st image inside the <ImageURL> tag, you could:

    1. Pass the image element to your function in the XML template like so:

    <ImageURL>[my_return_first_img({Image URL})]</ImageURL>

    2. Save the following code inside the Function Editor:

    function my_return_first_img( $imgs = '' ) {
    	if ( ! is_array( $imgs ) ) {
    		return $imgs;
    	} else {
    		return reset( $imgs );
    	}
    }
    Thread Starter brandsforless

    (@brandsforless)

    It works.
    Thank you for an excellent support again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Additional Images’ is closed to new replies.