• Resolved MakarkinPRO

    (@makarkinpro)


    Hi when I added

    add_filter( ‘aioseop_title’, ‘do_shortcode’ );
    add_filter( ‘aioseop_description_override’, ‘do_shortcode’ );

    and some ShortCode into Meta Title and Meta Description. I see a white page and notheing is loading.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    Why do you want to use a shortcode instead of just a regular callback function?

    As for the white screen of death, turn on debug logging.

    Thread Starter MakarkinPRO

    (@makarkinpro)

    I have a “PHP Code For Posts” plugin. It helps generating we shortcodes like [php snippet=1] with PHP code in there. I need put that [php snippet=1] into the middle of the text of MetaTitle and MetaDescripion. Like:

    <title>The best site of [php snippet=1] internet.</title>

    <meta name=”description” itemprop=”description” content=”I’m glad to see you at the best site of [php snippet=1] internet.” />

    so the [php snippet=1] have a code in there(or something similar):

    <?php
    $key_name = get_post_custom_values($key = ‘Key Name’);
    echo $key_name[0];
    ?>

    ps: inside the text, h1 title the ShortCode [php snippet=1] works good.

    Thread Starter MakarkinPRO

    (@makarkinpro)

    Probably I this I make MetaTitle works. But what happened with Meta Description I cann’t figure out. The [php snippet=1] is dissapearing and I see space and nothing more.

    The issue about custom field is still save.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘White screen ShorCodes in metaTitle&desc’ is closed to new replies.