Integrate WP Page meta into Builder Theme

I am creating a new theme for a client using Upfront / Builder and am looking to further integrate the already built Sliders into the theme.
Each page has its own Slider already created for it, you can view the www live site of this development domain to see in action. In short, I am looking to add a "Featured Slider" option to the default WP edit post page for the post type 'page'.
So, similarly to how you would select a featured image, I would like to select a featured slider, from the Slider Revolution plugin. The plugin creator has provided a simple code snippet, but I am unsure where to use this in my Upfront / Builder theme.

  • Predrag Dubajic

    Hi Mtwo,

    Hope you're doing well.

    I was checking this out but I'm afraid that I was unable to get this working with Upfront, not sure what exactly I'm missing here :slight_frown:

    I have forwarded this to our devs so they can check it out and see if they have any further thoughts on this.
    Please note that developer response might be slower than usual staff response, so we appreciate your patience on this.

    Best regards,

  • Ari

    Hey Mtwo

    Hope you are fine!

    I made a mu plugin for you which will enable the functionality in your theme, please follow the below instructions:

    1: Download this gist file:
    2: Upzip it, so you get this file revslider-metabox-for-page.php
    3: Inside the wp-content folder create mu-plugins folder if it's not exist.
    4: Now upload that file inside the mu-plugins folder.

    The functionality will automatically activated, you will see in your page like below screenshot:

    I provided the meta field name as: featured_rev_slider so you can show the revslider in your page template using below codes:

    $featured_slider = get_post_meta($post_id, 'featured_rev_slider', true);
    if ( shortcode_exists("rev_slider") && !empty($featured_slider) ) {
    	echo do_shortcode( '[rev_slider ' . $featured_slider . ']' );

    === What is mu-plugins? ===
    mu-plugins also called "must use plugins" is auto-activated plugin, that's mean by adding that file inside the "mu-plugins" the code is automatically start functioning without any activation from dashboard.
    If you need to more about mu-plugins, here's the link:
    In future if you need to deactivate it, just remove this file.

    Best Regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.