shuangmiles
Forum Replies Created
-
I’m experiencing this as well across our organization. Not sure what the issue is, I’ve even rolled back a few versions of wordfence but it’s erroneously showing that the code is invalid before allowing entry. My devices clock seems to be correct as well.
Using Permissions hid the other ones which works well enough for what I need thanks.
Sorry for the late reply revoking edit_published worked. My only issue is now that in capabilities even though I revoked edit others revisions it still lets users submit OTHER people’s revisions that are not the author of that post.
I think we are able to get the new revision button to show up, but now the problem is the Update button that bypasses the revision shows up for the store editor is there any way to make it so they have to do a revision instead of an update?
I enabled posts for Store Editor and it still doesn’t show so I don’t think its custom post type specific. Pages/Posts don’t use custom fields so I’m not sure either.
This is the revise capabilities i’ve checked for Store Editor
These are the settings I have for Capabilities set up
I only see New Revisions for admin, for Store Editor it should be the only option for editing
I also unchecked it for Revision Submission tab as well
I did have it checked, but I just unchecked it and it didn’t fix it.
As an admin I can see the new revision.
As Store Editor I cannot see it. I am also using Publisher Press Capabilities.
I have set these 3 custom post types to be able to revise for store editor but I don’t think that is it.
I am trying to make it so the Store Editor has to submit a revision in order to edit unless I’m misunderstanding how it works?
I also am using ACF but I notice even for posts the revision doesn’t show for these that don’t use custom fields.
I’m open to getting the pro if this will fix it but I want to make sure that it isn’t because of a setting I’m missing.I also made sure in the capabilities section that Store Editor could revise these custom post types. I guess what I want is for Store Editor to have to submit request to revise instead of directly editing and submitting the change to the custom post type.
I saw that I can do something like but how can I instead of outputting html elements to output the array of items i want to access like the event post id for instance and loop through each
if ( class_exists(‘EM_Events’) ) {
echo EM_Events::output( array(‘limit’ => -1,’orderby’ => ‘name’, ‘scope’ => ‘past’, array) );
}
I tried to do it like this but got no results ?// WP_Query arguments to find events that have ended ? ? $query_args = array( ? ? ? ? 'post_type' => 'event', // Custom post type name ? ? ? ? 'posts_per_page' => -1, // Retrieve all events, or specify a specific number ? ? ? ? 'meta_query' => array( ? ? ? ? ? ? array( ? ? ? ? ? ? ? ? 'key' => 'event_end_date', // Name of the custom field ? ? ? ? ? ? ? ? 'value' => $current_date, // Compare against today's date ? ? ? ? ? ? ? ? 'compare' => '<', // Look for dates before today ? ? ? ? ? ? ? ? 'type' => 'DATE', // Specify the data type for comparison ? ? ? ? ? ? ), ? ? ? ? ), ? ? ? ? 'orderby' => 'meta_value', // Order by the event_end_date ? ? ? ? 'order' => 'DESC', // Order descending, so the most recent end date is first ? ? ); ? ? $query = new WP_Query( $query_args );
Any suggestions?