Display custom post type with shortcode on Page or Other

Published November 30, 2016 by Anil Kumar Vishwakarma

In my example code I create a shortcode, which shows the title, excerpt, thumbnail and custom meta key value of the Random published posts of the type ‘restaurant’:

Click here for seeing code in large

Advertisements

One comment on “Display custom post type with shortcode on Page or Other

  • Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out /  Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out /  Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out /  Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out /  Change )

    w

    Connecting to %s

    %d bloggers like this: