Bruno Apr
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] How to hook in the post__in argumentHi Mikko, thank you for your advice and example.
Have a great day
Forum: Plugins
In reply to: [Relevanssi - A Better Search] How to hook in the post__in argumentHi Mikko, thank you for a such quick reply and comments.
I would like with a Relevanssi search placed in the parent post view check also for data in the related child posts, and after display in results parent posts that are related to child posts found form the search.
I will try to provide more details. The search will be looking for specific fields in parent post (for example fields “aa”, and “ab”) for specific fields in related child post (for example fields “bc” and “bd”). As such when user enter search values that are related to child post fields “bc” or “bd” the search results should display not a child post but a parent post related to the child post with fields “bc” or “bd”. Also, if a user search values that are related to the parent post it should display related parent posts. For example parent post is brand and child post is a car type (SUV, sedan etc). We have a view of brands that include filter that search in fields of brand names and car types. If user search for “SUV”, we should display all brands that have “SUV” in related child post field. Sorry for any confusion, please let me know if I should provide details differently.
Forum: Plugins
In reply to: [Swift Performance Lite] PHP 7.0 compatibilityThank you for a quick reply, Fred.
Probably the main my question is whether I can use your plugin with PHP 7.0 and do not worry, that I will get issues because of compatibility?Thanks
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Use part of website page URL in a queryOk, thank you. Is any way I can get support (maybe not on this forum)?
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Use part of website page URL in a queryHi, Happy New Year!
I tried to make as you advised in your links above. And it’s not working for me. I think I miss something, but after hours and hours, I couldn’t find what exactly. It just doesn’t load a data. I have an empty table.I would be very happy if you could have a look and recommend me something.
I made a plugin with a following code:
————————–
<?php/*
Plugin Name: Find Current Page URL
Version: 0.1
*/
function filter_gdoc_query ($query, $atts) {
if (‘https://docs.google.com/spreadsheets/mysheet_address’ !== $atts[‘key’]) { return $query; }
$page_code = wp_get_current_apge_code();
return str_replace(‘__PROGRAM_CODE__’, $page_code, $query);
/*echo ‘result url: ‘ . $page_code;*/
};function wp_get_current_apge_code(){
$url = str_replace(‘/’, ”, $_SERVER[‘REQUEST_URI’]);
/*echo ‘result url: ‘ . $url;*/
};
add_filter(‘gdoc_query’, ‘filter_gdoc_query’, 10, 2);
—————————
where __PROGRAM_CODE__ is a URL path of the pageThe plugin shortcode is following:
[gdoc key=”https://docs.google.com/spreadsheets/mysheet_address” class=”GoogleInfo1 no-datatables” use_cache=”no” query=”select J where C = ‘__PROGRAM_CODE__’ “]Thank you very much!
Forum: Plugins
In reply to: [Inline Google Spreadsheet Viewer] Use part of website page URL in a queryThank you very much, Meitar! I will try to work with this info
Forum: Reviews
In reply to: [Cloudflare] it made me crazyThank you for a quick and clear response. I changed a review rating because of that.
I didn’t use any other cache plugin and I cleared my browser cache.
Maybe I did something wrong with CloudFlare (can’t imagine what exactly), but my problems were solved after I deleted a website from a CloudFlare at all. Purging a cache thru the plugin or CloudFlare didn’t help.
I will try to use your plugin again after figuring out how to have a deal with CloudFlare.
Forum: Plugins
In reply to: [WP Speed of Light] The plugin worked just once and doesn’t work afterIf you would have a look thru dev tools for example on .time-year class, you can see that it’s “top: 50%;”.
But I’ve changed it in style.css to “top: 40%;”Forum: Plugins
In reply to: [WP Speed of Light] The plugin worked just once and doesn’t work afterMy CSS modifications don’t work. here is website: https://35.194.0.59/
Forum: Plugins
In reply to: [WP Speed of Light] The plugin worked just once and doesn’t work afterHi, yes. I tried all you’ve said. It doesn’t work.
My CSS was changed but minified CSS – not