Viewing 4 replies - 1 through 4 (of 4 total)
  • 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
    }
    ?>
    Jack K

    (@jack-kitterhing)

    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.

    Thread Starter herold

    (@herold)

    @jack

    Thank you!

    Jack K

    (@jack-kitterhing)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Filter By Pods Pages’ is closed to new replies.