Skip to main content
CaptainNemo's user avatar
CaptainNemo's user avatar
CaptainNemo's user avatar
CaptainNemo
  • Member for 5 years, 6 months
  • Last seen more than 2 years ago
  • Israel
awarded
revised
Loading…
awarded
comment
Filter DELETE REST API calls
Works like a charm.
accepted
comment
Filter DELETE REST API calls
Thank you @geouser for a very informative answer. However, I seemed to have stumbled upon another problem. Using your code the filter_function_name is not being called at all
comment
Filter DELETE REST API calls
@TomJNowell I am not sure how this can be done for every post has different authors.
comment
Filter DELETE REST API calls
@geouser I have thought about it but did not know how to stop the deletion if need be
asked
Loading…
comment
comment
Unable to edit categories in custom post type
Thank you for your answer. Unfortunately, it has nothing to do with my question. The missing ' is present only in the question (The site will not have been loading if it was missing). And ugly code, in this case, is not the issue.
revised
Loading…
Loading…
awarded
revised
Display a mixed list of posts and media
Added remark on have posts function which caused the creation of a no posts message when attachment were available
Loading…
comment
Display a mixed list of posts and media
I have to say that I am not sure which answer to mark as the answer. Yours or mine.
answered
Loading…
comment
Display a mixed list of posts and media
Thank you. That really helped me find the complete answer: $args = array('category' => $wp_query->get_queried_object_id(), 'posts_per_page' => -1, 'orderby'=> 'title', 'order' => 'ASC' , 'post_type' => array( 'post', 'attachment'),'post_status' => array( 'publish', 'inherit')); $glossaryposts = get_posts( $args );
asked
Loading…