Create shortcode for get post ID from custom post type with relationship
Question
I have two custom post types:
- School
- 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:
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
custom-post-types, functions, php, shortcode
2 years
2020-09-05T07:10:18-05:00
2020-09-05T07:10:18-05:00 0 Answers
103 views
0
Leave an answer