vergedesign
Forum Replies Created
-
Forum: Plugins
In reply to: [The GDPR Framework By Data443] Email link to manage data not workingHello. We are getting the EXACT same issue and have no caching enabled on our site. We moved over to a staging site to test and can confirm this may be an open issue?
Thanks, @webdevmattcrom. that is definitely an improvement. However a question… the post ID is unique over all posts regardless of their post type… is that correct? In which case, using the initial code would not affect another post type with the same post ID?
I only ask to understand if post ID’s are unique or repeated over post types. Your code is a definite improvement and i’ve implemented I already.
Thanks for replying.
H
Hello Tim, maybe I can chime in here.
What I did was just manually add donations with one account (i gave it a first and last name of BEFORE GIVE) – That way on my donor’s page, I knew which donations were taken before we installed.
There is an add on to manually add donations but it is paid.
okay, so ignore me, ive found the solution myself. For anyone else who wants to know… you can exclude certain posts using pre_get_posts function !
function my_custom_get_posts( $query ) { if ( is_admin() || ! $query->is_main_query() ) return; if ( $query->is_archive() ) { $query->set( 'post__not_in', array( 1, 13, 266 ) ); } } add_action( 'pre_get_posts', 'my_custom_get_posts', 1 );
Basically enter the post IDs in the array and that will remove them from the archive page
Matt, thank you very much for the post type name and the snippets.
Your support is awesome. Keep up the good work
Forum: Plugins
In reply to: [Advanced Sidebar Menu] not appearing on single post typesHello Matt, is there a solution for this? To have the sidebar show up for a single item post type?