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

  1. p_content with the post type of your app page.
  2. ebook with the correct slug of the page which will be used
  3. c_ebook with the correct post type of the post whose slug is used after ‘ebook‘ page slug in the example.
Categories
Most Popular

Leave a Reply

Your email address will not be published. Required fields are marked *