WordPress.org

Ready to get started?Download WordPress

Forums

Petfinder Listings
[resolved] Links from within the shortcode (13 posts)

  1. greginky
    Member
    Posted 4 months ago #

    I was wondering if there was a way to make the link above each picture, a working link and if so, can it be tied to an adoption application that I have on my site? I love your plugin and am getting ready to give it rave reviews. I have already shared it with my rescue friends.

    https://wordpress.org/plugins/petfinder-listings/

  2. rawrzors
    Member
    Posted 4 months ago #

    Take a look at my posts in this topic (may have to read through it):

    http://wordpress.org/support/topic/remove-pet-description-and-link-to-petfinder?replies=3

    You could edit that link to point to your page.

  3. greginky
    Member
    Posted 4 months ago #

    Thank you rawrzors, I think that is a little above my limited HTML knowledge. I don't know any php or css at all. Plus I would want it to just link to the description on my page and not leave my page and go to petfinder, or at the very least just open a new window. I would prefer it just go to the description on my page though. I may work on it later but it will take me a lot of figuring out I think.

  4. rawrzors
    Member
    Posted 4 months ago #

    If the form is static (always links to the same page) you would just need to add one line of code to the .php and you're there.

    However, if you have an adoption page for every individual animal, it would take a bit more work to set up.

  5. greginky
    Member
    Posted 4 months ago #

    Sorry it took me so long to reply. Yes my form is static and only 1 form. Can you tell me what line of code to insert and where to put it? I don't know anything about php at all. I know a little html and also no css knowledge, but I can follow directions if they are as simple as you said. Thanks for your help.

  6. greginky
    Member
    Posted 4 months ago #

    Here is the address for the form I am trying to link to.

    http://www.bgsdr.com/documents/fosteradoption-interactive-form/

  7. rawrzors
    Member
    Posted 4 months ago #

    Hi there,

    Look for (line 264 on most recent version, or the first appearance of below):
    $output_buffer .= "<div class=\"dog " . $dog->animal . "\"><div class=\"name\"><a name=\"" . $dog->id . "\">". $dog->name . "</a></div>";

    Replace with:
    $output_buffer .= "<div class=\"dog\"><div class=\"name\"><a href=\"http://www.bgsdr.com/documents/fosteradoption-interactive-form/\" name=\"" . $dog->id . "\">". $dog->name . "</a></div>";

  8. greginky
    Member
    Posted 4 months ago #

    This plugin has been deactivated because your changes resulted in a fatal error.

    Parse error: syntax error, unexpected T_CONCAT_EQUAL in /hermes/waloraweb066/b2969/moo.bgsdrcom/wp-content/plugins/petfinder-listings/petfinder-listings.php on line 264

  9. greginky
    Member
    Posted 4 months ago #

    Sorry, I fixed it, when I copied and pasted I missed the $ at the very beginning. I now have it like it should be and it works as I requested. Thank you so much for your input and help.

  10. greginky
    Member
    Posted 4 months ago #

    I don't suppose you can answer my widget question in this forum can you? I want to thank you again, this mod to the php is awesome, I love it.

  11. rawrzors
    Member
    Posted 4 months ago #

    I'll look into it...at a glance, it seems much harder than this issue.

  12. greginky
    Member
    Posted 2 months ago #

    FYI mine was located on line 249

  13. greginky
    Member
    Posted 2 months ago #

    The editor I am using is called Brackets. It is the free open source version of Adobe Edge Code. PetfinderListings plugin undated in the last day or so to Version 1.0.12 so I had to go back in and edit the code again. The code now appears in my editor on line 293 for anyone interested. I don't know if it is on the same line in other editors, but that is where it is in mine now for anyone interested. I love this app by the way!!!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.