• Hi, is there anyway to remove the link from the %category% tag. My SEO person requested to remove it for better SEO practices. Thanks very much.

    • This topic was modified 3 days, 10 hours ago by paulluxford.
    • This topic was modified 3 days, 10 hours ago by paulluxford.
    • This topic was modified 3 days, 10 hours ago by paulluxford.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Daniel Floeter

    (@kometschuh)

    This can be customized using Custom Filters.
    We only support Filters with our Pro Widget.
    The Pro Widget can be tested for free on a local WordPress installation from here.

    Add the custom filter code to your functions.php file or via a code snippet using a plugin like Woody Code Snippets:

    add_filter( 'cpwp_post_html', function( $ret, $widget, $instance ) {

    $ret = preg_replace_callback(
    '#<span\b[^>]*class="[^"]*\bcat-post-tax-category\b[^"]*"[^>]*>.*?</span>#is',
    function( $matches ) {
    $content = preg_replace(
    '#<a\b[^>]*>(.*?)#is',
    '$1',
    $matches[0]
    );

    return $content;
    },
    $ret
    );

    return $ret;

    }, 10, 3 );
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.