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.
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 3 years, 7 months ago by
Chetan Upare.
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.
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!
Hi @chetanupare,
can i test this in sandbox of wp all import ?
You can test any of our plugins at http://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/