Primary category importing (WP All Import)

#14179
  • Resolved Matthieu Gauthier
    Rank Math free

    Hello,

    I’m trying to import the rank math primary category of articles with WP All Import, but I can’t figure out how to do it.
    This will make the URL structure correct like this: site.com/cat/sub-cat/sub-cat/article/
    For now I only have this: site.com/cat/article/

    With WP All Import, I try to add the term “rank_math_primary_category” in the custom fields. The import updates the information, but it didn’t set it up.

    Because, I have more than 20 000 articles, I need to do it this way, I can’t do it by hand.

    Have you any clue how I can do it?
    Or is there a way to set on all articles the primary category to be the lowest category in the hierarchie?

    Thanks

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hello,

    Thank you for contacting Rank Math today.

    Rank Math will create unique database tables to save your SEO settings. If you are migrating to a new site, I would suggest that you make use of the native import/export feature that is available in RM by heading over to Rank Math > Import & Export and select the Export option.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello Michael,

    I’m not migrating a site, and I don’t want to import settings. All my settings are good, but I want to import datas.

    For now everything works (title, desc, url, categories, custom fields, etc.), but I can’t import the primary category data in Rank Math.

    Does the field have a special name, is it considers as a custom field?

    Thanks

    Hi there,

    Thanks for the follow up.

    This is a custom field and will be saved in the post_meta table.
    Please note that the primary category feature is used in the creation of breadcrumbs and primary category data will not modify your site permalinks.
    I can suggest that you check your database if the import was successful.

    Thank you.

    Thanks for the quick answer.

    The informations are in the database, but it’s not show in my backoffice.
    No posts are with the primary category selected.

    If I click on the button in the backoffice to manually choose the primary category and update, it change the permalink in order to add all the sub-categories in the URL (that I want).

    Hi Matthieu,

    Apologies for the delay.

    This is very odd, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi there,

    Thanks for the access.

    Could you please share a link to one of the posts affected by this issue?
    I have checked several posts and the primary term is set as shown below:
    Primary term feature

    We are looking forward to helping you. Thank you.

    Hello,

    The issue is for cities (Villes) the golfs, I change them myself.
    But, I will have the same issue when I will add all the new golfs.

    Thanks

    Hi there,

    Thanks for the additional info.

    I can see how this would cause a problem. Kindly allow me to consult our developers about this and I will get back to you in a short while.

    We appreciate your patience. Thank you.

    Hello,

    Yes you can consult the developers about this.

    Thank you very much for your time.

    Hello,

    Does the field have a special name, is it considers as a custom field?

    Yes, the primary category id is stored in rank_math_primary_category custom field.

    I wanted to take a look at the issue on your site, but it seems that the user you created in WP doesn’t have enough permissions, I can’t access admin pages of Rank Math among other things on the admin side. Can you please give us full access?

    Looking forward to helping you. Thank you.

    Ok, you have admin access

    Hello,

    Can you please also add the file which you are trying to import in the Sensitive Data Section?

    Looking forward to helping you. Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    For primary category, we are storing the ID of the cateogory and in your XML file you are using the name of the category name which is causing problem. I would suggest you to create 1 more field in the xml file and map it with the rank_math_primary_category custom field. That should fix the issue.

    Hope that helps. Thank you.

Viewing 15 replies - 1 through 15 (of 17 total)

The ticket ‘Primary category importing (WP All Import)’ is closed to new replies.