• Resolved toddweinkle

    (@toddweinkle)


    what is the proper way for getting the data for slide anything?

    $the_query = new WP_Query(‘slide_anything’)

    is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author simonpedge

    (@simonpedge)

    Use the following:
    $metadata = get_metadata(‘post’, $id); // $id is the shortcode ID of your slider
    print_r($metadata); // displays metadata array contents on screen

    And then you can get the data from this array:
    $num_slides = $metadata[‘sa_num_slides’][0];
    $slide1_content = $metadata[“sa_slide1_content”][0];
    $slide2_content = $metadata[“sa_slide2_content”][0];

    Have a look at ‘/wp-content/plugins/slide-anything/php/slide-anything-frontend.php’, from about line 40ish to get a list of all the metadata names.

    Thread Starter toddweinkle

    (@toddweinkle)

    exactly what I needed- thank so much!!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WP_Query variable name’ is closed to new replies.