Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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, 7 months ago by rup.
    #1095030

    Hi 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
    Michael

    #1095189

    That’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.

    #1095422

    Hi 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,
    Victoria

    #1095648

    Thank 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

    #1096033

    Hi,

    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,
    Rikard

    #1097245

    Hello,
    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 advance

    #1097417

    Hi,

    I’m not aware of any such plugins unfortunately, and we don’t have a solution ready for that in-house either.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.