Viewing 1 replies (of 1 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    If you want to access the meta data in a custom template, then you can’t do that through a shortcode.

    If you don’t know the exact name of the meta field, then you can first grab all the meta data that is assigned to a post by adding this code to your template and use it to lookup the name of the field.

    $meta = get_post_custom( $queried_object->ID );
    
    echo '<pre>';
    print_r( $meta );
    echo '</pre>';

    Once you have found the name of the field you want to show the data for, then you can use this to grab the data for the single field and show it somewhere in your template..

    $custom_field = get_post_meta( $queried_object->ID, 'wpsl_name_of_your_field', true ) );
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Page Template’ is closed to new replies.