• Clicknathan

    (@clicknathan)


    Perhaps I posted about this before, but if your WP setup is to show a static page on the homepage and choose another page for your latest blog posts (in Settings > Reading), and then you set this plugin to show Page content vs. latest blog posts on the homepage (in Amp > General Settings > ), then this Page content shows up on both the homepage and the page for latest blog posts.

    This also happens if you try and customize the content via the custom field in the Page editor for the homepage or blog post pageholder.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hey @clicknathan

    Thank you so much for using the plugin!

    That’s really strange. I’m reporting this in the Github, I will reoccur this issue and discuss it with my team.

    I will make sure that this gets resolved in the future updates.

    Regards,
    Ahmed

    Thread Starter Clicknathan

    (@clicknathan)

    FYI, I have found a way to solve this for my own site, by editing the plugin. If you can point me to the file that actually calls which pages use which templates in the /accelerated-mobile-pages plugin folder, I can work on a fix that would work for everyone and submit on GitHub or here if you’d like a little help. ??

    devmitch

    (@devmitch)

    Hey @clicknathan

    Could you share your solution?

    Thread Starter Clicknathan

    (@clicknathan)

    Well, mine is incredibly specific to our install.

    I set ours to show the blog posts on the homepage (in Amp > Getting Started).

    We use Design 2, so in the /templates/design-2/ folder look for the index.php file.

    You can then setup conditionals in that file. So, I have a check to see if the URL of the page is our front page’s AMP equivalent. If so, I then echo out functions to display the content from that page specifically, otherwise, show the blog posts.

    This will break with an update, of course. ??

    devmitch

    (@devmitch)

    Thank you @clicknathan,

    My solution is very custom as well so I will not be updating the plugin at all. I will try the custom conditional statements, it will be messy but better than the current issue!

    Thanks again, Take care!

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hey @clicknathan

    I’m still unable to understand. Are you using custom frontpage on the homepage? so what exactly is the problem then? Also, please update to the latest version because we made alot of improvements.

    Regards,
    Ahmed

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Also @devmitch Can you please explain what exactly are you trying to achieve.

    Regards,
    Ahmed

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Homepage and Blog page always show the same content’ is closed to new replies.