Trahald
Forum Replies Created
-
OK great thank you ??
So if I understand correctly, you’re saying I should just hardcode a web tool script directly into a theme, or create a plugin?
I had been thinking of something like making a single page application or inclue file, and then using an insert PHP/exec PHP plugin to include it, but I guess you’re saying I should just make a plugin? How would I connect the plugin to a single page, via a header/footer plugin?
If the tool needs a Composer package, should the “require_once ‘vendor/autoload.php’;” be in the plugin?
Thank you for the assistance!
I found this plugin, Per page add to head:
https://www.ads-software.com/plugins/per-page-add-to/
It does exactly what I want and is simple.
Forum: Plugins
In reply to: Distinguishing a plugin from one with the same filename?Still hoping for a solution to this ??
Forum: Plugins
In reply to: admin_footer action hook not working for me?Nevermind – got it to work ??
Forum: Plugins
In reply to: Distinguishing a plugin from one with the same filename?Anyone know how to do this?
Forum: Plugins
In reply to: What function does WP use to format post_content results into formatted text?Which filter does WordPress use to format the text though?
Forum: Fixing WordPress
In reply to: Where is the code for redirection based on ‘siteurl’ located?Anyone know something about this?
Forum: Plugins
In reply to: Filters not working on search results pages (the_content etc.)Looks like it’s as you say – the_title works with the default theme but the_content does not. Thanks.
What template files do I edit to add these filters to the search results page? How do I add these filters?
Forum: Plugins
In reply to: Filters not working on search results pages (the_content etc.)I don’t really understand what you mean. It’s just the standard search results. I just tried with the Default theme and it doesn’t work with that either.
Forum: Plugins
In reply to: [Plugin: WP Super Cache] Disabling caching for a plugin/action/filter?OK I see – that’s what this rule in .htaccess does I suppose:
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
Forum: Plugins
In reply to: [Plugin: WP Super Cache] Disabling caching for a plugin/action/filter?What I mean is, if the cache page exists but is expired and DONOTCACHEPAGE is defined, then the cached page will be simply be ignored right? And all requests to that page will be dynamic?
Forum: Plugins
In reply to: [Plugin: WP Super Cache] Disabling caching for a plugin/action/filter?Thanks. If the page is cached but the cached one is expired, and DONOTCACHEPAGE is now set on that page, would it still retrieve the cached value? Or would it adhere to DONOTCACHEPAGE since the cached page is expired.
Forum: Plugins
In reply to: Adding a filter to ‘the_title’ without affecting titles from wp_list_pages()?Does someone have any ideas on this?
Forum: Plugins
In reply to: What function to use to escape text permalink-style?I think that this is sanitize_title().
Forum: Plugins
In reply to: A function that tells you whether the current page is the homepage?Thanks again but that doesn’t quite work. global $query_string is blank even after wp_reset_query(). So I get the same warning.
I tried passing globals wp_the_query and wp_query as well.
I can just suppress the warning, but I’m not sure if I’ll get some unforeseen bugs later if I don’t pass a valid argument to query_posts().