• Resolved chetanupare

    (@chetanupare)


    Im Trying to import Content Images from relative url by passing cdn url before url, however im not able to find option in wp all import also img tag’s url contains ?$staticlink how i can remove this?

    url : `src="content-pages/recipes/Keto_Images_strawberry_circle.jpg?$staticlink$’

    https://pastebin.com/RvQP0aq4

    • This topic was modified 2 years, 2 months ago by chetanupare.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @chetanupare

    I’m not understanding your question fully, but will do my best to help.
    So you’re able to extract a relative URL from your XML file, but you’d like to:
    1. Alter/add parameters in the partial URL, then
    2. Alter it by adding your CDN URL before the relative URL

    If so, this would probably be possible by utilizing the custom PHP function which allows you to alter your values with PHP functions. Learn about that here: https://www.wpallimport.com/documentation/inline-php/

    I’m not sure where the $staticlink$ comes into play, as I didn’t see that in your linked pastebin file. I’m assuming it’s a parameter you’re trying to add?

    Hope this helped some.

    If you could clarify exactly what your input/extracted text is, and what you’d like it to end up being, I could help further.

    Thread Starter chetanupare

    (@chetanupare)

    Hey Akash,
    thanks for reply.

    sorry for wrong link , here is xml : https://pastebin.com/PutpA7mX

    Im Trying to Import Posts With Content Images.

    1. I want to remove a parameter from xml img tag links which is “?$staticlinks$”
    2. also want to prepend cdn url to img tag link.

    Here is log :
    https://pastebin.com/50FLZeWY

    • This reply was modified 2 years, 2 months ago by chetanupare.
    Plugin Author WP All Import

    (@wpallimport)

    Hey @chetanupare,

    1. I want to remove a parameter from xml img tag links which is “?$staticlinks$”
    2. also want to prepend cdn url to img tag link.

    Unfortunately, since the free version of WP All Import does not support inline PHP functions, this would have to be done manually with find/replace in a text editor.

    Thread Starter chetanupare

    (@chetanupare)

    can i test this in sandbox of wp all import ?
    and also can you share me reference for the function to append cdn url and remove parameter so i can try it on sandbox?

    i want to test it and share the result to client so i can ask for pro version
    thanks!

    Plugin Author WP All Import

    (@wpallimport)

    Hi @chetanupare,

    can i test this in sandbox of wp all import ?

    You can test any of our plugins at https://www.wpallimport.com/try/, but we can only talk about the free versions of our plugins in this forum.

    and also can you share me reference for the function to append cdn url and remove parameter so i can try it on sandbox?

    Unfortunately, I don’t have an example snippet for this data since it’s a pretty specific format/use case. However, you can find our general snippet examples here: https://www.wpallimport.com/documentation/code-snippets/.

    How can you with import create silo on a website? I am able to import blog posts in to categories website.com/MAINcategory/post/

    The post gets imported to the main category and also subcategory, but I am unable to create URL website.com/Maincategory/Subcategory/post/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Replace Relative Url & Parameter In’ is closed to new replies.