I've looked around in StackExchange & elsewhere before asking my question directly:
I have created a Wordpress custom template which users can add job-vacancy posts to.
I want to display these posts as part of front-page.php in the same website _ I think the best way to do this would be an iframe format but I have read that, for security reasons, Wordpress negates <iframe></iframe>
Is there a way to achieve this effect without using a Wordpress plug-in?
and what would the dynamic code be inside the iframe src
element?
Thanks in advance for any pointers
front-page.php
you can useget_posts()
to retrieve your posts, run a loop and display them. If that doesn't sound right, please expand as to how you initially setup these posts you want to display. – David Sword Dec 19 '17 at 23:35post_content
from one page on another. Say the ID of the source page was42
. Within the destinationfront-page.php
file, you could do something like:echo apply_filter('the_content',get_post(42)->post_content);
– David Sword Dec 19 '17 at 23:57functions.php
, then using said functions it both your "custom page" and on thefront-page.php
. (forgive the peppering of posts - I'm trying to grasp the problem without seeing what this 'custom template job-vacancy posts' page is or how its coded) – David Sword Dec 20 '17 at 0:12