Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember: Bookmarks – Why Are They Appearing In Sidebar Widgets?
Tagged: bookmark, eMember, placement, Shortcodes UI, sidebar widgets
- This topic has 19 replies, 3 voices, and was last updated 12 years ago by admin.
-
AuthorPosts
-
October 22, 2012 at 10:20 am #50353ZainParticipant
Hi Admin,
That’s great! I always appreciate the high quality work you guys provide, and the excellent support.
Righty… I’ll download it, give it a go and let you know of if there are any issues! Fingers crossed (I’m sure it’ll be just fine)…
Cheers.
October 22, 2012 at 12:23 pm #50354ZainParticipantHi,
Okay… got some feedback using version 8.3.1 of eMember.
At the moment, I’m seeing the new section and it’s definitely identifying all the Custom Post Types – both for the theme I’m using as well as plugins.
Doing a quick test (switching off the theme), the Custom Post Types are removed from the section. The same for the Shortcodes plugin – deactivating it causes it to be removed from the eMember settings page. So it’s good that it’s being identified.
However, when checking the checkbox for the ShortCodes and saving the settings… this isn’t working just yet. It doesn’t seem to be excluded from the page, and the bookmark feature is still appearing (note: see previous example page – this is with the new feature enabled).
Any ideas?
Thanks in advance.
October 27, 2012 at 11:33 am #50355ZainParticipant…I’m not sure, but is this function of any use?
http://codex.wordpress.org/Function_Reference/remove_filter
e.g.
remove_filter( 'the_content', 'wpautop' );
I think it might be useful to exclude the bookmark_handler, but I’ve not tested it.
Cheers.
November 12, 2012 at 3:26 pm #50356ZainParticipantHi Ruhul & Nur,
Okay… I finally have a solution for the bookmark issue from Ohad Raz (who builds the Shortcodes UI plugin). You can see the entire thread here:
http://wordpress.org/support/topic/custom-post-type-exclude-issue
What it came down to was how the Shortcodes UI plugin was using the WP filter hooks. I think we also identified why your eMember Custom Post Type functionality wasn’t quite working with this particular plugin.
The upshot is that the latest version of Shortcodes UI (v1.8. can now work with the eMember plugin… but some code does need to be added to a user’s theme or they can create a small plugin.
…that is of course, unless you guys want to add the short bit of code into eMember (or add it to an FAQ). I leave that decision to you (as I’ve now got a small plugin that does the job!).
Cheers,
Zain
November 13, 2012 at 3:07 am #50357adminKeymasterHi Zain, the following bit of code is what you needed to add extra right?
//this is to remove
add_action('scui_external_hooks_remove','no_bookmarks');
function no_bookmarks($content){
remove_filter('the_content','bookmark_handler');
}
//this return the bookmarks if needed down the road
add_action('scui_external_hooks_return','return_bookmarks');
function return_bookmarks($content){
add_filter('the_content','bookmark_handler');
}We could potentially add this to an eMember addon.
-
AuthorPosts
- You must be logged in to reply to this topic.