Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @johanhorak

    It sounds like the images are not attached to the post. In this case, you could use a custom PHP function on the content element (see documentation) to extract all of the image URLs. For example:

    // Get all image src from HTML content
    function my_get_images_from_content( $html ) {
        $doc = new DOMDocument();
        @$doc->loadHTML( $html );
        $imageTags = $doc->getElementsByTagName( 'img' );
        $all_images = array();
    
        foreach( $imageTags as $tag ) {
            $all_images[] = $tag->getAttribute( 'src' );
        }
    
        return implode( ",", $all_images );
    }

    If that doesn’t help, please reproduce the issue at http://www.wpallimport.com/debug/ and open a ticket at http://www.wpallimport.com/support/ so that we can take a look at the data and advise further.

    Thread Starter Johanhorak

    (@johanhorak)

    Hi

    I hope I can figure the above idea out. I am using a thrive plugin and hope they can assist before I try and figure out how to use the code above.

    Thanks for the amazing support.

    Thread Starter Johanhorak

    (@johanhorak)

    I had a look at the code and see the image urls. It’s odd that if I right click on any image there’s no url to copy.

    <div class="tvo-testimonial-info-wrapper tvo-clearfix">
    						<div class="tvo-testimonial-image-cover" style="background-image: url(https://capeholidays.info/files/Yola.jpg)">
    							<img src="https://capeholidays.info/files/Yola.jpg"
    								 class="tvo-testimonial-image tvo-dummy-image" alt="profile-pic">
    						</div>
    						<div class="tvo-testimonial-info tvo-info-background">
    						<span class="tvo-testimonial-name">

    Yola </span>
    <br>

    • This reply was modified 8 years, 4 months ago by Johanhorak.
    Plugin Author WP All Import

    (@wpallimport)

    Hi @johanhorak

    Since there are img tags, the example code I posted above should help.

    Plugin Author WP All Import

    (@wpallimport)

    Marking this as resolved, but please let us know if you have more questions pertaining to this issue.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Export images’ is closed to new replies.