-
AuthorPosts
-
April 26, 2019 at 12:11 pm #1094705
Hi,
we’re in close contact with plugin developers of “Media Cleaner” (https://de.wordpress.org/plugins/media-cleaner/), which is really powerful (if you know what you do) and we’ve used it on lots of former websites. Unfortunately it doesnt support ENFOLD shortcodes (your avia layout builder results in shortcodes which result in HTML), so they started digging in to Enfold for us. Here’s a question from them:
I would simply like to know how to programmatically get the final and completely resolved HTML for a given Post ID. The reason is that I need to analyze that HTML to extract all the images URLs in use.
Here’s the whole mail in context:
I have been actually trying hard to debug this but… it’s really tough. The big problem is that the theme is using its own shortcode, but running a do_shortcodes on that HTML actually fails (the shortcodes are basically resolved to nothing). I don’t know why, and I tried digging into the theme code, but it’s huge, there are millions of code in it.
As you are a customer for this theme, could you ask them a simple question, through their support?
I would simply like to know how to get the final and completely resolved HTML for a given Post ID. The reason is that I need to analyze that HTML to extract all the images URLs in use.
Could you ask them that? That would be really helpful and I will be able to fix it in a few minutes. The code is already ready for it.- This topic was modified 5 years, 6 months ago by rup.
April 28, 2019 at 3:09 pm #1095030Hi rup
I guess there is a good reason why this plugin is not supported by Enfold, see the report at coderisk.
If I was you I would not use this plugin.Best
MichaelApril 29, 2019 at 8:33 am #1095189That’s cause of the plugin deletes files (which is basically what it’s intended to do).
This is a plugin – anyways – we use once a year and remove it in between. But for this one time, it’s extremely useful. So still – an answer would be great.April 29, 2019 at 6:40 pm #1095422Hi rup,
I am afraid you’ll need to contact the plugin author for more info about the issue. Making third-party plugins compatible with the theme is unfortunately beyond the support scope we offer. Sorry for that!
Best regards,
VictoriaApril 30, 2019 at 8:10 am #1095648Thank you for a canned reply.
The question is really simple – in terms of programming – and the mentioned function must exist.
Its nothing to do new or code new. So please read the question again:I would simply like to know how to programmatically get the final and completely resolved HTML for a given Post ID
May 1, 2019 at 6:52 am #1096033Hi,
We don’t have code like that to give you unfortunately, and writing it would be out of scope of theme support like Victoria pointed out. If you want to see the generated markup of a page or post then you can simply select to view the source in your browser for instance.
Best regards,
RikardMay 4, 2019 at 4:16 pm #1097245Hello,
But would you have another plugin that work with enfold that we can use to clean unused media.
I try WPS cleaner, it doesn’t work with enfold for media.
So would be great if you can advise a plugin.
thank you in advanceMay 5, 2019 at 1:02 pm #1097417 -
AuthorPosts
- You must be logged in to reply to this topic.