Create shortcode for get post ID from custom post type with relationship


I have two custom post types:

  1. School
  2. Podcast

There is a relationship between them; each school can have many podcast. (I’ve created this with Toolset).

This is the table that created by Toolset:

enter image description here

Post(School) with this ID 8568 has a post(Podcast) with this ID : 11093;

How Can I get the Current School Podcast ID and create a shortcode for it in function.php?

, , , Sarah Jason 2 years 2020-09-05T07:10:18-05:00 0 Answers 103 views 0

Leave an answer