• Resolved balubino

    (@balubino)


    Hi,

    I’d need to select and extract by the way of the API or some other mean all pages that are marked as FP enables, so that I can have a browseable index to display in a standard template (from the homepage in my case).
    But I can’t get around how to use the API for that aim.
    I also tried to employ get_pages directly checking for a non-empty ‘wpfp_fullpage_pt_fullpage_options’ metakey with no success.

    Thanks in advance.
    Antonio

    https://www.ads-software.com/plugins/wp-fullpage/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Julien Zerbib

    (@julien-zerbib)

    Hi,

    You could do a new WP_Query() than use WPFP() and WPFP_Query() to re-create the loop.

    Than, use WPFP()->get_sections(); and WPFP()->get_slides(); to loop threw FullPage content.

    Hope it helps,

    Regards,

    Julien

    Thread Starter balubino

    (@balubino)

    Hi Julien,

    thanks, that is the idea.
    Could you point to a file in the plugin source managing this loop where I can take a peek to get an inspiration?

    Anyway I’ll try this route, thanks again

    Antonio

    Thread Starter balubino

    (@balubino)

    Since I just needed to extract an index of pages being marked as FullPage I resorted to a combination of wp_posts, looping through all pages and then checking with get_post_meta to get the relevant option.

    foreach ( $fp_items as $fp_item ) {
             $fp_options = get_post_meta( $fp_item->ID, 'wpfp_fullpage_pt_fullpage_options', true );
             if ( $fp_options["isItFullpage"] == 'yes' ) {
             }
    }

    thanks
    Antonio

    Plugin Author Julien Zerbib

    (@julien-zerbib)

    Thanks Antonio,

    Regards,

    Julien

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Selecting from a standard template all FP pages’ is closed to new replies.