WordPress.org

Ready to get started?Download WordPress

Forums

Displaying a custom page template with a shortcode (2 posts)

  1. logishkas
    Member
    Posted 2 years ago #

    Hello everyone,

    A have a bunch of pages containing contact details of different staff members. On each page data is stored in custom fields and I'd like all those pages to use a particular custom page template. That template uses page meta data (i.e. contact details from custom fields) to display information in a table.

    Is there a way to display one of those pages using a shortcode? I do know how to display the content of a certain page (see the link below) but I actually need its meta data to be displayed in a defined custom page template.

    http://pastebin.com/AwRGcwmH

    Thanks in advance!

  2. logishkas
    Member
    Posted 2 years ago #

    Any ideas? : )

Topic Closed

This topic has been closed to new replies.

About this Topic