$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Parent child relation between Post and Page|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Parent child relation between Post and Page

matteradmin10PV0评论

I have a recipes website called Green Comfort Food. I'm new to building websites so I am figuring it out with not a lot of background knowledge.

I have a homepage, recipes page, pages to devide those recipes like a lunch page, diner page etc and finally I have the post with the actual recipe. I use elemontor to show the blog grid on these lunch, diner etc pages. So the structure should be home > Recipes > lunch > post.

It is easy to create a parent child relation between the different pages but since I made the recipes as a post there is no child parent relation anymore. So now its Home > recipes > lunch and then its home > post.

I would like to fix it by using custom post types but for some reason this doesn't allow me to use elemontor. I tried to make the pages to posts and create the hierarchy by catogories but the the breadcrumbs will link me to the archive page for the posts which I cant seem to change.

Can anyone help me with this? The main thing is to get my structure right and preferably use breadcrumbs.

I have a recipes website called Green Comfort Food. I'm new to building websites so I am figuring it out with not a lot of background knowledge.

I have a homepage, recipes page, pages to devide those recipes like a lunch page, diner page etc and finally I have the post with the actual recipe. I use elemontor to show the blog grid on these lunch, diner etc pages. So the structure should be home > Recipes > lunch > post.

It is easy to create a parent child relation between the different pages but since I made the recipes as a post there is no child parent relation anymore. So now its Home > recipes > lunch and then its home > post.

I would like to fix it by using custom post types but for some reason this doesn't allow me to use elemontor. I tried to make the pages to posts and create the hierarchy by catogories but the the breadcrumbs will link me to the archive page for the posts which I cant seem to change.

Can anyone help me with this? The main thing is to get my structure right and preferably use breadcrumbs.

Share Improve this question asked Dec 29, 2018 at 12:56 Green Comfort FoodGreen Comfort Food 1
Add a comment  | 

1 Answer 1

Reset to default 0

You can create Custom Post Type for Recipes and create custom taxonomy [i.e. Pies and Pastries, Breakfast & Lunch etc.] and then create new posts under it.

Then you can make it like this, Home -> Categories -> Sub-Categories [if available] -> Post and url can be https://domain.tld/recipes/lunch/post-name or https://domain.tld/recipes/lunch/dessert/post-name/

** domain.tld will be replace with your host url.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far