Invalid menu after import
-
Hi, afert import from Ultimate Recipe in my nav menu all recipe are invalid, see screenshot:
i do not find a solition, how can i fix? thank you!
-
The recipe post type was converted to a regular post. Links to those post should still work and old links should still work with a redirect: https://help.bootstrapped.ventures/article/96-import-from-wp-ultimate-recipe
Can you give me a link to the site?
yes of course, ledolcipagnotte.com for ex old: https://www.ledolcipagnotte.com/recipe/pane-azzimo/
I understood recipe->post, I followed your guide and also installed the redirections, the links from google also work, but as shown in the screenshot the menu does not work, it is not updated, it is a problem because the links are more than a hundred !-
This reply was modified 5 years, 3 months ago by
nikxs.
And you are always manually putting those recipes inside of your menu? It’s a bit of a strange way of doing things. Why not have an overview page where you show all recipes per category?
Or something like the grid examples here:
https://demo.wprecipemaker.com/recipe-index/I can’t answer, because I don’t write the recipes and she has always added the links manually, now I can also help to create a view as you suggested, but there is no way to rebuild the menu links? saving the permalinks does not work have I already tried!
Are the actually gone from the menu on the website as well? I would expect the menu to just use the post ID to link and that ID hasn’t changed.
they disappeared from the menu! the links to the menu have been inserted manually by selecting the recipe, not pasting the link, if you see the screenshot from error but it is actually correct, opening the menu you see:
I just tested adding a WP Ultimate Recipe recipe to a menu and then importing that recipe and it works fine for me. You did use the “Convert to Posts” option when importing to WP Recipe Maker?
the answer is yes; I selected “Convert to Posts”. I found the error, after checking everything I deactivated and deleted the old plugin “WP Ultimate Recipe”, this is what breaks the links! Can’t delete the old plugin?
Oh right. I forgot to test deactivating WP Ultimate Recipe.
One way to fix this is to search the wp_postmeta database table to rows where the
meta_keyis_menu_item_objectand themeta_valueisrecipe.For those rows you’d want to replace
recipewithpost, which should bring those menu items right back.Send an email to [email protected] if you’re not sure how to do this.
Great! I will try to make an update query, thanks for your prompt assistance!
I hope I did well:
1. first of all, backup the database!
2. select query to check how many records:
SELECT * FROMma_postmetaWHEREma_postmeta.meta_key= “_menu_item_object” ANDma_postmeta.meta_value= “recipe”3. update query to replace “recipe” with “post”:
UPDATEma_postmetaSETmeta_value= ‘post’ WHEREma_postmeta.meta_key= “_menu_item_object”
ANDma_postmeta.meta_value= “recipe”the menu now works fine! thanks for the support!
That looks correct, happy to hear that worked! Just let me know if you experience any other issues at all.
-
This reply was modified 5 years, 3 months ago by
The topic ‘Invalid menu after import’ is closed to new replies.