wpmnger
Forum Replies Created
-
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Undefined index: tweet-limitThank you Jeremy for taking care of this!
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Undefined index: tweet-limitProbably unrelated, but in local dev site I get a:
SyntaxError: JSON.parse: unexpected character
from:
https://platform.twitter.com/widgets.js?ver=3.8whereas on live site this error doesn’t occur…
Can’t believe I overlooked that!!!!!! rookie mistake.
Hi there,
I did everything advised here and in similar posts:
Convert posts table to MyISAM, clean out yarpp options, uninstall re-install etc…Now the “consider titles” and “consider bodies” don’t even show up anymore. The first box is the ‘Display options for your website’
Is that supposed to happen?
Thanks,
@akostrubiak I can’t speak as to ‘appropriate’ but I think it’s the right place for anything related to scripts. Here is what the codex says:
wp_enqueue_scripts is the proper hook to use when enqueuing items that are meant to appear on the front end. Despite the name, it is used for enqueuing both scripts and styles.
I think it is safe to say that this applies for dequeuing and deregistering as well.
@alextaylor You can place this code anywhere in your theme’s functions.php file. The error you are getting could be from multiple reasons and most likely not relating to this code snippet. Try a clean WP install with no plugins other than MailChimp.
Sorry, I didn’t clarify: using the action ‘init’ should be saved for other things and not for scripts and styles. For that you should use the action ‘wp_enqueue_scripts’.
That way you are not removing a script or style that has not yet been registered or enqueued.
It’s a question of sequence. You could use wp_enqueue_scripts.
example
function your_prefix_remove_styles() { wp_dequeue_style('mailchimpSF_main_css'); //remove unnecessary Mailchimp styles wp_dequeue_style('mailchimpSF_ie_css'); //remove unnecessary Mailchimp styles } add_action( 'wp_enqueue_scripts', 'your_prefix_remove_styles', 11 );
You can create a function in your functions.php and add these lines to remove the css
wp_dequeue_style('mailchimpSF_main_css'); wp_dequeue_style('mailchimpSF_ie_css');
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Prevent search term logging for ip addressI have that checkbox checked but I am not seeing ip addresses anywhere…
Would that be on the user searches page? Or is there a log file somewhere?Just to be clear, I don’t want to track ip addresses for privacy reasons. Just to filter out my own.
Thanks for getting back to me so quickly!
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Search hit highlighting messes URL linksThis may have something to do with ‘Create custom search result snippets’ option. Do you have that checked? It makes for nicer search results but can also mess things up if you have complex template files.
If you don’t want your image attachments turning up, you can uncheck ‘attachment’ from the ‘indexing options’. Or use the Exclusions section to target individual attachments.
I wouldn’t rush to mess with the plugin files themselves… what if there is an update?
Try using filters instead, check out this example of search filtering from the Relevanssi User Manual.
I made a filter to to return only attachments which are Word Docs, excluding all other attachments:
add_filter('relevanssi_hits_filter', 'exclude_attachments'); function exclude_attachments($hits) { $filtered = array(); foreach ($hits[0] as $hit) { if($hit->post_type == 'attachment') { //Only keep attachments that are Word Documents if ($hit->post_mime_type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') { array_push($filtered, $hit); } } //Keep all results that are not attachments else { array_push($filtered, $hit); } } $hits[0] = $filtered; return $hits; }
Thanks for getting back to me on this mc_tak.
I am not looking to limit the user, rather to enable the user.
I want to grant the site editor permissions to access ‘settings->mailchimp setup’ in the WP Admin. At the moment, the capability threshold for that page is set to ‘manage_options’. Which means that by default only site admins can see the page.
If I grant ‘mange_options’ to my Editor role I end up opening too many Admin pages and I don’t want to do that.My suggestion would be to add a feature whereby the site admin can grant a User access to the ‘MailChimp Setup’ settings page – but that might be too much to ask… So I thought I would ask for something simpler, perhaps the ability to change the capability threshold for the Admin page.
In my previous post I suggested changing the capability threshold to ‘edit_plugins’. That way if I grant ‘edit_plugins’ to the Editor role, my editor will be able to access the settings page.
Does that clarify things a bit?
Forum: Plugins
In reply to: [Yoast SEO] Plugin fails to save data on attachment pageshttps://www.ads-software.com/extend/plugins/wordpress-seo/changelog/
“1.4.5
Bug fixes:
…
Allow saving of SEO metadata for attachments.
…
”Forum: Plugins
In reply to: [Yoast SEO] Insert Media: Yoast SEO Meta Info Won't Savehttps://www.ads-software.com/extend/plugins/wordpress-seo/changelog/
“1.4.5
Bug fixes:
…
Allow saving of SEO metadata for attachments.
…
”Forum: Plugins
In reply to: [Yoast SEO] "Edit Media" function to apply SEO doesn't get savedhttps://www.ads-software.com/extend/plugins/wordpress-seo/changelog/
“1.4.5
Bug fixes:
…
Allow saving of SEO metadata for attachments.
…
“Great to see it fixed, shame we never got a response on this forum…
Forum: Plugins
In reply to: [Yoast SEO] SEO fields not saving on Edit Media screenhttps://www.ads-software.com/extend/plugins/wordpress-seo/changelog/
“1.4.5
Bug fixes:
…
Allow saving of SEO metadata for attachments.
…
“Great to see it fixed, shame we never got a response on this forum…