Viewing 5 replies - 1 through 5 (of 5 total)
  • @isidore1964

    Install the code snippet into your active theme’s functions.php file
    or use the “Code Snippets” plugin.

    https://www.ads-software.com/plugins/code-snippets/

    Thread Starter Le chef Isidore

    (@isidore1964)

    Hello (@missveronicatv)
    Thank you for your reply.

    I installed the “Code Snippets” plugin I put this piece of code, saved/activated and it doesn’t work and in the function.php file it doesn’t work either.
    Should I change something in this code for it to work or give me the procedure because here I am lost.

    Thanks
    Cordially,
    Thierry

    @isidore1964

    You can add or remove post types by editing the code snippet line:

    $args['post_type'] = ['products','post','my-custom-cpt'];

    Current version will list post types: 'products','post','my-custom-cpt'

    Which post types do you use at your site?

    You can try with these post types:

    $args['post_type'] = ['products','post','recipe'];

    • This reply was modified 2 years, 2 months ago by missveronica.
    Thread Starter Le chef Isidore

    (@isidore1964)

    Hello and thank you @missveronicatv

    I persisted in putting recipes in the plural, that’s why nothing happened.
    By adding recipe in the singular, it worked immediately.

    Thanks a lot for the help.

    Cordially,
    Thierry`

    Thread Starter Le chef Isidore

    (@isidore1964)

    Oops, I forgot to translate, that’s it!
    Hello and thank you @missveronicatv

    Thanks a lot for the help.

    Cordially,
    Thierry

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show personalized posts in profile’ is closed to new replies.