WordPress.org

Ready to get started?Download WordPress

Forums

WP Customer Reviews
Need your help in a simple header modification (2 posts)

  1. rykios
    Member
    Posted 3 years ago #

    Congratulations on an EXCELLENT plugin, what i value the most is Valid XHTML + Microformats, means attention to details :)
    I show reviews in all article pages (single.php) I would like to include in header div ( mainly for SEO reasons ) the page title, so, without knowing much php i changed the plugin code line 667 to:

    $the_desired_title = wp_title();
    		$the_content .= '<div id="wpcr_respond_1"><h2>' . $the_desired_title  . ' reviews</h2>'; /* start the div */

    Sure i am doing something very wrong, as only thing showing in header h2 is the word reviews, instead of "current-page-title reviews"
    Any help would be appreciated... thanks! :)

    http://wordpress.org/extend/plugins/wp-customer-reviews/

  2. rykios
    Member
    Posted 3 years ago #

    sorted :)
    posting here an example in case anyone else needs it

    $the_desider_title = get_the_title($post->ID);
    		$the_content .= '<div id="wpcr_respond_1"><h2>' . $the_desider_title  . ' reviews from visitors</h2>'; /* start the div */

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic