Support » Plugin: WP Customer Reviews » [Plugin: WP Customer Reviews] Need your help in a simple header modification

  • 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/

Viewing 1 replies (of 1 total)
  • 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 */

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Customer Reviews] Need your help in a simple header modification’ is closed to new replies.