• I have a working PHP plugin that is currently run by clicking on a reference that looks like [something]. How can I run this same plugin when an image on the page is clicked?

Viewing 6 replies - 1 through 6 (of 6 total)
  • More info please…..

    Do you mean that on the page, your link “appears” to look like a shortcode, but the HTML is something like:

    <a href="somepluginfunctionname" >[anchorlink that looks like shortcode because of brackets]</a>

    If that’s the case, just replace the bracketed anchor link with your image.

    If it’s something different, paste your actual HTML/code so we can help.

    Thread Starter joethall

    (@joethall)

    There is no html code on the page, just the text “[REDC]” (without the quotes of course). REDC is established with the statement “add_shortcode( ‘REDC’, ‘REDCportal’ );” and REDCportal is an installed PHP plugin.

    I don’t know how to include a graphic in this kind of replay or I would show you what it looks like. However, it consists only of “Search Comps” in normal text and underlined signifying that it is an HTML ‘link’.

    Left-clicking the text gets me to where I want to go (as redirected in the plugin PHP) and that’s exactly what I want. EXCEPT my client wants me to replace this text link with a JPEG that she has provided.

    Thanks for your response.

    Thread Starter joethall

    (@joethall)

    This thread is now a week old and there has been only one response and it asked another question. Is there any way to generate some discussion going on this topic.

    Stated again – How to change a link that invokes a shortcode to be an image.

    Thanks

    Can you post a URL of the page? It’ll be a lot easier to see what the situation is if we have a link.

    Thread Starter joethall

    (@joethall)

    OK, I got blasted with some things and I’m just now getting back to this problem. The URL is https://www.RealEstateDaily-News.com and there you will see that it uses the standard default menu. If a subscriber has paid for the extended functionality there will be an additional menu item at the far right called Search Comps.

    If the paid subscriber left-clicks on Search Comps a second page comes up with an HTML link and if that link is left-clicked the installed plug-in is executed.

    The problem is simple – avoid the second click by having the menu item go directly to the plug-in. However, this is, apparently, hard to do.

    Thread Starter joethall

    (@joethall)

    If someone is willing to look into this problem I now have a test subscriber that can be used to experience the duplicate click situation.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to convert a shortcode to an anchored image’ is closed to new replies.