PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Embed_URL returns the index page URL

  1. extreme-south
    Member

    I have a large image-based site where each post contains one image. The site is configured to show "full text" of each post in the index pages.

    In each post I've embedded a "purchase this image" form. To know what image people want I've used the embed_URL and embed_title hidden fields.

    The problem is that if someone fills out the form while browsing on the index page, and submits, the URL returned is always just the top post's URL on that particular index page, NOT the post they're actually ordering from.

    Obviously if they go into the full post and then submit it is OK. But there's no reason for anyone to do that since each post is just an image, and forcing people to do that to order will make the process confusing.

    I can see the logic of what the form is doing, since the browser URL is the index page. But Is there any way to get the embed_URL command to pick up the post URL?

    thanks

    Posted 12 years ago on Sunday January 29, 2012 | Permalink
  2. extreme-south
    Member

    Just as an addition to this: the social media links I'm using in these posts don't have an issue "knowing" they are part of the post and not the index page, so hopefully I can hook into the same functionality?

    Posted 12 years ago on Monday January 30, 2012 | Permalink
  3. extreme-south
    Member

    No way to do this ??

    Posted 12 years ago on Tuesday January 31, 2012 | Permalink
  4. extreme-south
    Member

    Throw me a crumb here . . . .

    Posted 12 years ago on Wednesday February 1, 2012 | Permalink
  5. extreme-south
    Member

    *bump*

    Posted 12 years ago on Wednesday February 1, 2012 | Permalink
  6. extreme-south
    Member

    *bump*

    Posted 12 years ago on Thursday February 2, 2012 | Permalink
  7. This information was sent to you in response to your Priority Support request for the same question. Here was out response:

    The embed_url is NOT going to be the post or page permalink for the specific post or page if it's being displayed in a loop.

    This is going to be the URL of the page (not "page" as in a WordPress page, but the page/url loaded in the browser) that the form was submitted from and in this case the page URL is http://nicholsoncartoons.com.au/page/7 and not the permalink of the individual post that may be displayed on that page.

    If you want to store the permalink of the specific post in situations where you are displaying them in a loop like this because you don't want the actual URL of the page that is loaded in the browser then you'd have to implement this as a customization.

    You'd have to add a hidden field on your form to store this value, you'd then have to set it so it can be populated dynamically. You would then need to add custom PHP to your theme template so that it gets the permalink for that specific post and populates the field with it.

    So what you want to do can be done, but it would have to be done as a customization.

    Posted 12 years ago on Thursday February 2, 2012 | Permalink
  8. extreme-south
    Member

    Thanks. I only sent a support request because I didn't get a answer here.

    Your answer sounds terribly complex to implement, yet social booking plugins seem to be able to grab the URL from the loop with ease. . .

    Posted 12 years ago on Thursday February 2, 2012 | Permalink