Documentation / Tutorials / Awesome Apps
Showing correct page title when using Awesome Apps and Custom Post for Yoast SEO
/ Awesome Apps / Showing correct page title when using Awesome Apps and Custom Post for Yoast SEO
Recently we needed to create a subsite within an Awesome App, and we had to show the other posts using app module, something like <site url>/<app>/ebook/<post-slug>. Currently, in this case, awesome enterprise platform is not able to automatically show the correct post title.
To fix this put the following code in the site-specific plugin,
In the above code, you will have to replace the following to make it work
- p_content with the post type of your app page.
- ebook with the correct slug of the page which will be used
- c_ebook with the correct post type of the post whose slug is used after ‘ebook‘ page slug in the example.