• I’m trying to print a custom post id for some shortcode that needs the id. There is some error that I’m missing.

    The code is placed in the genesis_entry_content hook. Any suggestions are much appreciated!

    <?php
    if (is_singular(‘wpseo_locations’)) {

    [wpseo_address id=”<?php the_ID(); ?>” hide_name=”1″ show_state=”1″ show_country=”0″ show_phone=”1″ show_phone_2=”0″ show_fax=”0″ show_email=”0″ show_url=”1″]

    [wpseo_map id=”<?php the_ID(); ?>” width=”1000″ height=”500″ zoom=”-1″ map_style=”roadmap” scrollable=”1″ draggable=”1″ show_route=”0″ show_state=”0″]

    <?php }
    ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Print Custom Post ID for Shortcode’ is closed to new replies.