• I am trying to import from the a name tag is this possible?

    The HTML code I have is
    <a name='variants'></a><h3 style='padding-top: 24px;'>Variants</h3><p>Variants of the....</p>

    I have the

    tag as a
    attribute as name
    value as variants

    I am trying to import into a custom field called variants.

    Am I doing something wrong as it doesn’t import anything?

    https://wordpress.org/plugins/import-html-pages/

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

    (@sillybean)

    That should work.

    Thread Starter colinsp

    (@colinsp)

    Stephanie unfortunately it doesn’t. Any thoughts on something else to try?

    Thread Starter colinsp

    (@colinsp)

    Stephanie, my bad. I didn’t check the post front end only the back end.

    It does import them BUT it doesn’t show the content in the post edit window only on the live page.

    More debugging to do.

    Thread Starter colinsp

    (@colinsp)

    I have done some more work on this and it doesn’t seem to be working properly with CPT’s.

    It saves the import as a CPT But it doesn’t do the following:

    1: Give the CPT the title from the file name even though this option is set in the config.
    2: It doesn’t save it as a post so I don’t know to which table it saves the data.
    3: There is no data in the posts or postsmeta tables
    4: Try to edit the CPT and there is no data stored in the CPT fields, they are empty.
    5: It imports all the text on the page NOT just the text in the HTML tags defined in the config.

    Either I am doing something wrong or this plugin doesn’t work with CPT’s.

    Thread Starter colinsp

    (@colinsp)

    A correction to 2 above it does create it as a post but not as a cpt and there are empty data items in the postmeta table for the field entries.

    I have also found the guid is not correct got manually created enties it is

    http://mysite.com/?post_type=name_profile&p=138

    BUT for the auto generated ones it is

    http://mysite/name_profile/smith/
    where smith is what should be the title of the CPT.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Importing a name tag to custom field’ is closed to new replies.