• Resolved tpphost

    (@tpphost)


    This plugin was exactly what I needed from my client custom setup. Thank you so much for creating this.

    I do have one question for you. Is there a way for ‘no_posts_message’ to include basic HTML code? My client wanted a simple message for this, but it includes things like B, BR, A HREF.

    Thank you for your time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    The shortcode can’t accept HTML, but there’s a PHP filter you can use to customize or change the output to anything you’d like: display_posts_shortcode_no_results

    Here’s an example:

    add_filter( 'display_posts_shortcode_no_results', function( $message ) {
    return '<p><strong>No results found:</strong> You might try <a href="' . home_url() . '">checking the homepage</a>.</p>';
    } );
    Thread Starter tpphost

    (@tpphost)

    Worked perfect. Thank you very much ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Question about no_posts_message parameter’ is closed to new replies.