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

Question

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?

0
, , , Sarah Jason 2 months 0 Answers 63 views 0

Leave an answer