• Resolved kevinbuhler

    (@kevinbuhler)


    I have what may be an odd request for custom fields.

    I have an HTML tag (“td”) in the content area of my page that contains content that I am trying to import into a custom field. It works great when I set a ‘custom field’ mapping, and it does indeed import the HTML properly into the right field.

    However, I then want that same content to be omitted from the post body.

    In other words, whatever content is in the ‘custom field’ tag should be MOVED into the custom field; it should be removed from the post body.

    Thoughts?

    https://ww.wp.xz.cn/plugins/import-html-pages/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stephanie Leary

    (@sillybean)

    Hi, Kevin. I’m afraid adding that option isn’t feasible with the way the plugin is currently written. I am working on switching the tag selection over to phpQuery, which works more like jQuery than the current tag/attribute/value inputs and is therefore more flexible. Once that’s in place, I’ll be able to offer an option to remove arbitrary chunks of HTML from the post body.

    In the meantime, since handling a specific set of markup is much easier than writing something that can handle anyone’s markup, I could probably write you a custom version of the importer that would do this for your site. If you’d like to hire me for an hour or two, let me know.

    Thread Starter kevinbuhler

    (@kevinbuhler)

    Great, thanks Stephanie for the response.

    I think I figured a way around it for now by tweaking my existing HTML files.

    If I do end up needing further assistance I will let you know.

    Thanks again for building such a wonderful tool for the WP community!

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

The topic ‘custom field request’ is closed to new replies.