• Resolved jasonb4u2

    (@jasonb4u2)


    Hi,

    Does the Description and Titles accept Taxonomy and Custom Fields short code entries so listings can display only certain items that I need them to display ?

    Cheers

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

    (@cybr)

    Hi Jason,

    By default, they don’t.

    However, you can enable this functionality.
    The following snippet will work in v3.0.6 and v3.1:

    
    // v3.0.6+:
    add_filter( 'the_seo_framework_do_shortcodes_in_description', '__return_true' );
    // v3.0.6:
    add_filter( 'the_seo_framework_do_shortcodes_in_title', '__return_true' );
    // v3.1.0+:
    add_filter( 'the_seo_framework_title_from_custom_field', function( $title ) {
    	return do_shortcode( $title );
    } );

    You can add those lines to your (child-)theme’s functions.php file ??

    Thread Starter jasonb4u2

    (@jasonb4u2)

    Ok,

    So if I have a custom taxonomy as example help_me_please how do I enter that into the Description layout, the format I need to enter ?

    And also, that code you gave above, is that just for custom fields or both custom taxonomies and custom fields ? I need the Tax to also show

    • This reply was modified 6 years, 3 months ago by jasonb4u2.
    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Jason,

    I’m a bit confused now by your first question. Could you rephrase it?
    I think you mean that you want the shortcode to be available? These should be introduced by another plugin or a theme.

    The snippet I shared is built to work with the custom SEO fields only. Auto-generated fields have their shortcodes stripped automatically, for various reasons, among security.
    If the snippet doesn’t work for you, please let me know and point me to an example page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Tax & Custom Fields Support’ is closed to new replies.