flaschenzug22
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Some pages not included in searchForum: Plugins
In reply to: [Relevanssi - A Better Search] Some pages not included in searchUsing relevansi 4.7.1 – but the search in the postmeta does not return any results.
I tried:
meta_key LIKE _relevanssi_noindex_reason
meta_key LIKE %relevanssi%0 results
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Some pages not included in searchThanks for you reply.
The admin search displays the three subposts but not the main page.
If I set the filter to post type: “page” -> I get the result: “Found a total of 0 posts, showing posts 1–0.”The “bremen” page is not included in the index. Only the 3 posts (the main page is a page, the “subpages” are posts).
Like to try the “_relevanssi_noindex_reason”, but can’t find it ..?
ThanksForum: Fixing WordPress
In reply to: Shortcode not working in tagsYou are a genius.
I think i just tested the first two “add_filter” ideas you had.Now I tried to add:
add_filter( ‘get_the_archive_description’, ‘do_shortcode’ );And tada, it is working!
Thank you so much for your fast and precise support!Forum: Fixing WordPress
In reply to: Shortcode not working in tagsHere is the archive.php:
<header class="page-header"> <?php echo "<h1>".single_cat_title( '', false )."</h1>"; the_archive_description( '<div class="archive-description">', '</div>' ); ?> </header><!-- .page-header -->
and then just the normal content:
if (have_posts()) : while ( have_posts() ) : the_post(); /* * Include the Post-Type-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Type name) and that will be used instead. */ get_template_part( 'template-parts/content', get_post_type() ); endwhile; the_posts_navigation(); endif;
Forum: Fixing WordPress
In reply to: Shortcode not working in tagsNo ideas or experiences? Would be amazing to solve this problem.
Thanks ??Forum: Fixing WordPress
In reply to: Shortcode not working in tagsThanks for your reply(s) Michael.
There is not tag.php in my Theme folder.
I try to add the shortcode in the tag description, yes. (not in a post)
But in the category description it works without problems.Is the shortcpde from a plugin or selfmade?
can you share the full code of the shortcode function, via pastebin?It is selfmade. Added in the function.php in the child theme
https://pastebin.com/azNiPCXjForum: Reviews
In reply to: [Autoptimize] Plugin loads a lot of JS files in frontendokay. Thanks. ??
Action hook “save_post” was what I was looking for.Thank you so much for your help!
Forum: Reviews
In reply to: [Autoptimize] Plugin loads a lot of JS files in frontendOkay, that was to easy ;-). Now it work’s.
So AO is not updating the cache when you add / change a post / page ?OR if it is. Is there a way to hook in there?
Forum: Reviews
In reply to: [Autoptimize] Plugin loads a lot of JS files in frontendVery interesting.
I installed the Snippet tool and tried the same.
But I just get the information, that the function is already declared.
So i changed the name of the triggered function, but i still don’t get anything.Can you tell me, in which case the autoptimize_action_cachepurged is triggered?
Change of settings/posts/e.g. ?Forum: Reviews
In reply to: [Autoptimize] Plugin loads a lot of JS files in frontendJust added a plugin (only one php file) and activated the plugin in the wordpress backend. Plugin is loaded and works. Only the hook into the purge_cache is not working.
And the code (see a few posts above) is right at the beginning of the PHP File.
- This reply was modified 4 years, 11 months ago by flaschenzug22.
Forum: Reviews
In reply to: [Autoptimize] Plugin loads a lot of JS files in frontend* you’ll also need to check at which point the code is loaded/ executed, maybe at that point the action has already fired?
Is there a way how to check that?
It is not the is_admin or the priority. I checked both.
But how can I force my plugin to load/execute first?Forum: Reviews
In reply to: [Autoptimize] Plugin loads a lot of JS files in frontendThanks @optimizingmatters . It’s amazing how fast you reply and how accurate your responses are. Thanks!
I found the solution. And of course you were right. It had nothing to do with your plugin. I tested another plugin of my own where I added Blocks to Gutenberg. And I don’t know why, but wordpress loaded everything for the editor from the backend.
re. hook; sure, you can hook into the autoptimize_action_cachepurged action.
I tried to hook in, but it is not working. Still trying to figure out why.
if(is_admin()){ function clearCacheHook() { mw_log("start clear cache: ".$cachePath); if($cachePath) rrmdir($cachePath); } add_action( 'autoptimize_action_cachepurged', 'clearCacheHook', 999 ); }
Merry Christmas ??
Forum: Reviews
In reply to: [Autoptimize] Plugin loads a lot of JS files in frontendOH. And is there a way to hook in when Autoptimize clears the Autoptimize cache ?
Forum: Plugins
In reply to: [Reusable Text Blocks] auto added tags to blocksSorry, … its included already. I was just blindfold. So the solution:
Just add plain=”1″, voila. Thats it.
[text-blocks id=”BLOCKID” plain=”1″]