Results 1 to 2 of 2

Thread: og:image:url pointing to page instead of image

  1. #1
    Thread Starter
    Veteran almightyeric's Avatar
    Join Date
    Aug 2011
    Location
    Nothern CA, USA
    Posts
    416
    Thanks
    56
    Thanked 19 Times in 16 Posts

    og:image:url pointing to page instead of image

    In wrapper.php, there is this line of code:

    PHP Code:
    <meta property="og:image:url" content="<?php the_permalink(); ?>" />
    The OpenGraph protocol (http://ogp.me/) defines og:image:url as:

    og:image:url - Identical to og:image.
    It defines og:image as:

    og:image - An image URL which should represent your object within the graph.
    On a single ad page, the_permalink(); returns the URL of the page, not of an image. For example, on the default ad's page, the meta property contains this:

    HTML Code:
    <meta property="og:image:url" content="http://example.com/ads/my-first-classified-ad/" />

  2. #2
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,499
    Thanks
    75
    Thanked 556 Times in 504 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Classipress image upload change file names - serious Image SEO issues
    By sandeepcs in forum Report ClassiPress Bugs
    Replies: 7
    Last Post: September 29th, 2014, 03:32 AM
  2. Replies: 4
    Last Post: April 16th, 2013, 02:23 PM
  3. Dimitris How to link the featured image to full size image in blog post?
    By genesi in forum Report Vantage Bugs (Legacy)
    Replies: 4
    Last Post: April 5th, 2013, 07:00 AM
  4. Replies: 1
    Last Post: May 14th, 2012, 03:04 AM
  5. post image using free image hosting sites option
    By vincent in forum ClassiPress General Discussion
    Replies: 3
    Last Post: October 9th, 2011, 10:59 PM