Prevent Delete Attachment by URL or When Submit
Prevent Delete Attachment by URL or When Submit
Prevent Delete Attachment by URL or When Submit
OK, so this code looks really bad, but let’s try to clean it a little bit and make it work… First of all, there is no need to all that mess with cloning queries. It makes no sense, to be honest. wp_reset_query() will recreate all query based on request, so there is no point in … Read more
Decide user that can publish a post
Use the following: $args = array( ‘post_type’ => ‘[custom post type name]’, ‘paged’ => $paged, ‘has_archieve’ => true ); $catquery = new WP_Query($args); echo pagination_bar($catquery);
I figured it out myself, but by using several different small things. I’m sorry to ‘steal the credit’, – but I can’t remember all the sources used: This is the JavaScript: jQuery(document).ready(function() { function GetURLParameter(sParam) { var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split(‘&’); for (var i = 0; i < sURLVariables.length; i++) { var … Read more
Ajaxify This Code
I have solved. The solution is related with the function get_post_meta(); As WordPress as made by the abstraction of differnet kind of posts with the same structure we can define different post types. Here we can find more information about the function: https://developer.wordpress.org/reference/functions/get_post_meta/ And as you can read, you can find 3 vars $post_id, $key … Read more
how to replace source ” https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css” in the wordpress backend?
You can edit and put any content you want on “single.php” file in the theme folder.
Display Meta Values in Custom Filter – Admin Custom Posts