Support » Fixing WordPress » Open graph problem: Showing wrong description of homepage

Viewing 1 replies (of 1 total)
  • Change line 124 to line 131 with:

    /**
     * Default url property, using the permalink for the page.
     */
    function opengraph_default_url( $url ) {
      if ( empty($url) ) $url = get_permalink();
      if ( is_home() || is_front_page() ) $url = home_url();
      return $url;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Open graph problem: Showing wrong description of homepage’ is closed to new replies.