[Resolved] commas between categories when using WPSP plugin

Home Forums Support [Resolved] commas between categories when using WPSP plugin

Home Forums Support commas between categories when using WPSP plugin

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1535422
    qpaq

    I use the WSPS plugin to list the recent posts on the home page.

    The following code gets rid out of commas between category meta labels and it works fine in post pages but it does not work on the homepage. I need to add a third line to address WSPS maybe but couldn’t figure it out.

    add_filter( 'generate_term_separator', function() {
        return ' ';
    } );
    
    add_filter( 'generate_page_hero_terms_separator', function() {
        return '  ';
    } );
    
    #1535433
    Elvin
    Staff
    Customer Support

    Hi,

    WPSP uses wpsp_term_separator filter for its term separator.

    That said, try this PHP snippet:

    add_filter( 'wpsp_term_separator', function() {
        return ' ';
    } );

    A wise man once said:
    "Have you cleared your cache?"

    #1535653
    qpaq

    Perfectly working, thanks Elvin.

    #1536655
    Elvin
    Staff
    Customer Support

    Perfectly working, thanks Elvin.

    No problem. 🙂

    A wise man once said:
    "Have you cleared your cache?"

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.