To the developer of this plugin, you can get pod pages using this:
<?php
// Is Pods activated?
if ( function_exists( 'pods_api' ) ) {
// Get PodsAPI
$api = pods_api();
// Get Pod Pages
$pod_pages = $api->load_pages();
$pod_page_list = array();
foreach ( $pod_pages as $pod_page ) {
$pod_page_list[] = $pod_page[ 'name' ]; // example: "friends" or "friend/*"
}
}
?>
You can check if you’re on a specific pod page by using this code:
<?php
// Get pod page from sidebar option
$pod_page = 'friend/*';
if ( function_exists( 'is_pod_page' ) && is_pod_page( $pod_page ) ) {
// This is that pod page
}
?>
Hi there @herold
Hope your well today and thanks for your question.
Currently not, but it looks like @scott Kingsley Clark has provided some awesome code to get this working 🙂
I’ve passed this along to the lead developer for you.
Thanks!
Kind Regards
Jack.
Hi there @herold,
Your most welcome 🙂 We’re currently working on getting a fix out for a few bugs, but I have passed this along and hopefully it’ll get added at some point 🙂
Thanks!
Kind Regards
Jack.