Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jim Briggs

    (@brygs)

    Hi, 2cats. The feature you’re asking for is in version 2.3 of the plugin. Details on how to use it here: https://www.airdriemedia.com/petpress-faq/#customdetailpage

    Please let me know how it works for you! (for faster response please use this contact form because WordPress doesn’t notify me of new posts here!)

    Forum: Plugins
    In reply to: [PetPress] Error
    Plugin Author Jim Briggs

    (@brygs)

    Hi, Jennakret,

    This sort of error is generally an issue with the PetPoint service, which happens occasionally. I took a look at the page at it does seem to be working now.

    If you have problems, I suggest checking first to see if PetPoint is functioning. You can do this here: https://pethealth.statuspage.io/. PetPoint outages are unfortunately fairly frequent, but usually do not last very long.

    If you have any further problems or questions, please use the feedback form on the http://www.airdriemedia.com website, because WordPress doesn’t notify me when people submit questions here and sometimes it is several days before I go out and look. (I get notifications of replies, but strangely I don’t get notified if someone opens a new topic) As it is, sorry for the delay in getting back to you.

    Forum: Plugins
    In reply to: [PetPress] Not Refreshing
    Plugin Author Jim Briggs

    (@brygs)

    Hi, Jenna, sorry you’re having difficulty. The data should update every 30 minutes, but I can see on your page that your data is two days old. I think what is happening is that your “adopt” page is being cached by your website. If I change the URL to https://rhhumanesociety.org/adopt/?x=1 then I get current data — this is because the caching feature you have is fooled by the addition of the ?x=1 to thinking it’s a different page, and serves up a fresh copy. (You can try this yourself, just come up with a different number each time because the URLs need to be unique to avoid seeing a cached version).

    The fix for this would be to not cache the page that contains the PetPress shortcode. I can’t tell you how to do this because I cannot determine from the outside what caching plugin you are using. Most caching plugins allow you to specify specific URLs or URL patterns to exclude from caching.

    If you continue to have problems, please let me know what caching plugin you are using and we can track down the right steps.

    Hi. Another user having the same problem. Here’s a video, but it’s not very illuminating: https://youtu.be/rfhkm3UzSC0?si=zMo6a97B9eX7tHrC

    Thanks for the help

    Thread Starter Jim Briggs

    (@brygs)

    @threadi Thanks for the reply. It can definitely be done using the WP posts functionality, but is it worth the extra time it would take, given that the data refreshes so frequently? Each of the pages I want to make on the fly is a call for basically one row from a table (and one call to write the data for each page, when the data comes in from the external source). I would think going to a table for one row would be so much faster than doing the work of creating/calling a post object … or is it? I can see advantages to having a post, but my concern is that the extra processing of creating and reading them would negate any benefits.

    Plugin Author Jim Briggs

    (@brygs)

    PHP is supported, up to 8.2 as of this writing.

    Forum: Plugins
    In reply to: [PetPress] License
    Plugin Author Jim Briggs

    (@brygs)

    Indeed, GPL v2

    Has there been any progress or a workaround on this? I am having the same problem. Thank you.

    Thread Starter Jim Briggs

    (@brygs)

    Thanks for the explanation. Here’s some more specifics from my case.

    My plugin has code like this

    add_shortcode('MYPLUGIN','myplugin_main');
    
    function myplugin_main($atts=[], $content = null)
    {
    // does stuff
    }

    When I go to edit a page that has the shortcode [MYPLUGIN], the function myplugin_main is fired. When I edit a page that does not have the shortcode, it is not fired. All of this makes a kind of sense, because it seems that WordPress can’t or doesn’t differentiate cases in which the shortcode exists as a shortcode and cases in which the shortcode is meant to function as a shortcode (that is, as a function call).

    What I would like to do is to not have the myplugin_main function fire if the page is just being edited. Or, at least, have myplugin_main exit early if it’s not going to be needed, but I don’t know how to programmatically tell whether the shortcode is going to be interpreted or whether it’s going to be presented merely as the shortcode itself.

    Thanks for the help.

Viewing 9 replies - 1 through 9 (of 9 total)