• Resolved Dani

    (@danicasati)


    Hi.
    Is it possible to use SEARCH function, including in SEARCH tag automatically current title post instead to put a text manually?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor zymeth25

    (@zymeth25)

    You mean [catlist search=”sometext”] where “sometext” is always current post title? No, this is not possible, only if you use custom PHP code.

    • This reply was modified 7 years, 1 month ago by zymeth25.
    Thread Starter Dani

    (@danicasati)

    Any suggestion for code?

    Plugin Contributor zymeth25

    (@zymeth25)

    It depends on where you want the code to be placed. But assuming we have a $post object you can do this:

    
    global $post;
    echo do_shortcode('[catlist search="' . $post->post_title . '"]');
    
    Thread Starter Dani

    (@danicasati)

    Ok, thank you for support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘SEARCH function’ is closed to new replies.