• Due to legacy formatting I required for my blog’s previous life in Movable Type, I use custom templates for every post format except standard – that’s the only one in which I use the_content(), so syndication links won’t display for any other post. Is there manual code I can add to my other templates to compensate for this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Shanske

    (@dshanske)

    Of course….the content solution was designed to just work. I myself use custom code in my theme as preferable.

    The answer is actually in the FAQ in the readme…

    How do I prevent the links from being automatically added to the content?

    You will have to remove the content filter remove_filter( ‘the_content’, array( ‘Syn_Config’, ‘the_content’ ) , 30 ) and then you can call get_syndication_links() directly in your theme. You should add
    this to the init hook.

    get_syndication_links( $object, $args ) – Returns the HTML for $object. $object can be a post_ID, a WP_Post object, or a WP_Comment object.
    ** $args
    ***style- Defaults to ul
    ***text- Display text, defaults to settings option
    ***icons- Display icons, defaults to settings option
    ***container-css- Class to wrap entire syndication links in
    ***single-css- Class to wrap a single link in
    ***text-css` – Class to wrap the text before the links in

    Thread Starter MacDara Conroy

    (@macdaraconroy)

    Where do I remove that content filter? In my functions.php or in the plugin file itself?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Code for custom entry templates?’ is closed to new replies.