• Hi, I hope this is the right forum.

    Can anyone help?

    I would like to display the latest news letter from a parent website on our new child website. I have access to the parent newsletter folder which has both the most re ent newsletter and previous archived ones so the file listing might look like:

    wp-content/uploads/newsletters/newslettername-202050.pdf
    wp-content/uploads/newsletters/newslettername-202051.pdf
    wp-content/uploads/newsletters/newslettername-202052.pdf
    wp-content/uploads/newsletters/newslettername-202053.pdf

    and so on.

    My question is how can I display only the latest newsletter (in this case newslettername-202053.pdf) on the child website automatically so that once a new? newsletter is published this will be the one that’s accessed.

    I’ve tried something silly like ‘https://websitename.com/ wp-content/uploads/newsletters/newslettername-<?php(select max().pdf' and other variations but obviously they dont work.

    Any help for a novice php programmer would be very much appreciated.
    Yes, I know I’ll require a pluging to display pdf’s

Viewing 1 replies (of 1 total)
  • You can write custom code to list the files and select the largest, but I think it would be best to simply link to the parent site for finding the newsletter (signup or where it is published) since this is a child site. The parent content is the parent’s, and the child should just redirect to it or ignore it.

    There are RSS feed widgets and blocks that could be used also.

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying newsletter from one website to another’ is closed to new replies.