Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    Yes, this is be possible. I’m not able to see the page you linked to (it’s in the admin area) and it might depend on how the tabs are set up – but here are some examples:

    [content type=page id=123]

    This will display the page content. You can also use the page “slug”, the base part of the URL displayed under the title.

    [content type=page name=example-page]

    If you want to display the page title and featured image too, then you can use a loop. In this case, it’s not really a “loop”, since it’s just one page:

    [loop type=page name=example-page]
      [field title]
      [field thumbnail]
      [content]
    [/loop]

    You may have to work with it to format/style how you want.

    Thread Starter mfisher

    (@mfisher)

    Hi,

    Thank you for the fast reply and info. I realized that the page I want to display is more dynamic. It is to add a new church user to the site, so the id is changing and no slug is created yet.

    this is the url: https://www.makethiswork.info/wp-admin/post-new.php?post_type=church_user

    Is there a way to grab the post= part of the url since it is dynamic? The admin page uses custom post data. the slug in the custom post type is: church_user.

    [content type=page id=%postid%]

    Thank you for ur good support. How can I donate?
    Mel

    Plugin Author Eliot Akira

    (@miyarakira)

    From what you described, it sounds like you’d like to display inside a tab (on the front-side of the site) the admin page to create a new church user. Is that correct? That would be much harder to do, compared to displaying existing page content.

    1) The nicest way would be to have a frontend form which can create a new post (of the post type church_user). However, this plugin doesn’t have that function – I’m working on another plugin for creating input forms like this, but it’s not finished.

    2) An alternative is just to have a link that goes to the admin page. For example:

    <a href="[url admin]/post-new.php?post_type=church_user">
      Click here to create a new church user
    </a>

    The user will have to log in, or already be logged in.

    3) Another idea I have is probably not practical – to embed the admin page in an iframe:

    <iframe src="[url admin]/post-new.php?post_type=church_user" width="100%" height="400px"></iframe>

    There’s a donation link in the plugin reference (Settings -> Custom Content) at the bottom of the page; or here in the right column under “Author”.

    However, it would be nice to find a good solution for you first. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Single Page’ is closed to new replies.