npacademy
Forum Replies Created
-
Forum: Plugins
In reply to: [Ultimate Category Excluder] No longer workingThe problem seems to be that when articles are loaded in the ‘load more’ section of the homepage feed, this is when ultimate excluder cannot apply the filter. The extent of the feed that appears on page load is excluded, but as soon as AJAX loads the load more, it does not work.
Can you push a fix for this compatibility ?
Forum: Plugins
In reply to: [Ultimate Category Excluder] No longer workingThis is not resolved – please could you assist.
Forum: Plugins
In reply to: [Ultimate Category Excluder] No longer workingWe haven’t changed our website for years other than updating WordPress
Forum: Plugins
In reply to: [Ultimate Category Excluder] No longer workingWe’re using version 1.7. Not sure why support info says 1.1.
Forum: Themes and Templates
In reply to: [Raft] Post category not working (Raft Theme v1.0.4)I am also having this problem.
So there is no particular way to stop a role accessing one specific plugin?
Forum: Plugins
In reply to: [Members - Membership & User Role Editor Plugin] Can’t access dashboardFor us, it was the ‘delete posts’ role being denied that stopped admin cp access. I am not sure, but I think we have a custom function about the editor to access admin cp only and I think this may be why.
Forum: Plugins
In reply to: [WooCommerce] Remove “in stock” and “price” from google snippetsThank you. If I wanted to remove just the ‘in stock’ notification, but leave price, how can I do that?
Forum: Plugins
In reply to: [WooCommerce] Remove “in stock” and “price” from google snippetsI added the following and it crashed my website to a 502 error:
//remove instock from google function wc_remove_some_structured_data( $markup ) { unset( $markup['offers'] ) return $markup; } add_filter( 'woocommerce_structured_data_product', 'wc_remove_some_structured_data' );
Forum: Plugins
In reply to: [WooCommerce] Remove “in stock” and “price” from google snippetsIs that put into functions.php?
That doesn’t make a difference – the line breaks and formatting don’t translate when the shortcode is in action.
Ok I seem to have it working I think it was the styling I’d put in for some reason… Thanks for your help.
I figured there was something wrong in the function, but I used it as stated on your reply elsewhere. Just thought you might have spotted an obvious error.
I can’t see why it wouldn’t work as all I had to change was the key…
Thank you, however I tried this as shown in my reply to this thread and it isn’t working.
Here is the function I added:
function filter_gdoc_query ($query, $atts) { if ('https://docs.google.com/spreadsheets/d/1xBMaz15TgtdMJn_SKPXGc4zWXrgVCeMIK2mP1adYoTs/edit?usp=sharing' !== $atts['key']) { return $query; } $cur_user = wp_get_current_user(); return str_replace('__WORDPRESS_USER_EMAIL__', $cur_user->user_email, $query); } add_filter('gdoc_query', 'filter_gdoc_query', 10, 2);
- This reply was modified 6 years, 4 months ago by npacademy.
By the way, I tried what you said here:
I adjusted the key from ABCDEFGH to the link, and changed it in the php function in the functions.php file too.
Then I call this, and it’s blank:
[gdoc key="HTTP://LINKHERE" query="select B where C = '__WORDPRESS_USER_EMAIL__'" class="no-datatables" strip="1" use_cache="no" style="font-weight:normal; display:inline; position:relative; top:5px;"]
And there is of course a value matching my email in there.