[ad_1]
[ad_2]
I want to create a page history type of thing like in the shown image for all of my pages where you can click to go back to previous/parent pages
Copyright © 2020 - 2022, Project DMC - WordPress Tutorials for Beginners- All Rights Reserved. Privacy Policy
You will want to look up “Breadcrumbs”. There are a variety of ways to achieve this.
This feature is called Breadcrumb. Many modern themes like Astra, Kadence, Blocksy has this feeature out of the box.
If you use a SEO Plugin on your site like Yoast, RankMath or All-in-one SEO, breadcrumbs are present their as well.
If you don’t use any of the above there are still some ways to achieve it.
[https://wordpress.org/plugins/breadcrumb/](https://wordpress.org/plugins/breadcrumb/)
[https://wordpress.org/plugins/breadcrumb-navxt/](https://wordpress.org/plugins/breadcrumb-navxt/)
Or you can ask ChatGPT to write a PHP code snippet for you and you can put that in functions.php file of your theme but make sure to create a child theme first otherwise the code snippet will be removed when you update the theme.
My suggestion is – Either use the Breadcrumb feature that comes with your theme. Almost all modern themes comes with this feature out of the box. So try looking for breadcrumb feature in the theme docs or simply search “your theme name + breadcrumb”. If it’s not available, I highly recommend you to install Yoast SEO or RankMath, these will help you implement breadcrumb feature and set up basic SEO as well.
To add this, you just need to enable it. You don’t need to do anything technical or add code, etc.
Good luck. Do let me know how it goes.