Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nielsvanrenselaar

    (@nielsvanrenselaar)

    @reddo

    You can set default options trough the settings panel. Is that something you mean?

    Thread Starter reddo

    (@reddo)

    No, I mean I’ve already set the default options and I would like to echo the field somewhere else in my template. Specifically I want to use the image I’ve set as default in the options panel in one of my theme’s functions. Is there a possibility to do this?

    Plugin Author nielsvanrenselaar

    (@nielsvanrenselaar)

    @reddo everything is saved as a meta to the post or page you are editing. For posts and pages:

    $open_graph_title = get_post_meta( $post->ID, 'open_graph_title', true );
    $open_graph_description = get_post_meta( $post->ID, 'open_graph_description', true );
    $open_graph_image = get_post_meta( $post->ID, 'open_graph_image', true );
    $open_graph_type = get_post_meta( $post->ID, 'open_graph_type', true );

    For defaults:

    $default_title = get_option('_open_graph_title');
    $default_description = get_option('_open_graph_description');
    $default_type = get_option('_open_graph_type');
    $default_image = get_option('_open_graph_image');

    For home:

    $open_graph_title = get_option('_home_open_graph_title');
    $open_graph_description = get_option('_home_open_graph_description');
    $open_graph_type = get_option('_home_open_graph_type');
    $open_graph_image = get_option('_home_open_graph_image');
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Access the entered info manually’ is closed to new replies.