Decouple page name from page title
How about removing the the_title calls from your theme and inserting the title as an H1 into the text. This way you truly decouple things.
How about removing the the_title calls from your theme and inserting the title as an H1 into the text. This way you truly decouple things.
Add Media + Quick Edit buttons not working
No… Your users won’t receive the post again in their feeds when you click update button. That’s how WordPress works. So don’t be afraid to click update button Dashboard -> All Posts -> Edit -> Make changes -> Click update button PS: If you still afraid, do a little experiment. By default your feed url … Read more
Adding custom fields to the Quick Edit screen – puzzled about the column concept
edit_post_link returns blank
After searching through WordPress core I found the following on lines 1051 – 1057 of wp-admin/includes/class-wp-posts-list-table.php if ( post_type_supports( $screen->post_type, ‘title’ ) ) : if ( $bulk ) : ?> <div id=”bulk-title-div”> <div id=”bulk-titles”></div> </div> <?php else : // $bulk ?> So, in order for the #bulk-titles element to be part of your admin list … Read more
Not sure it’s the best code but I’ve tested something here that works : (function ($) { // copy of the WP inline edit post var wp_inline_edit = inlineEditPost.edit; // override inlineEditPost.edit = function (id) { // WP edit function wp_inline_edit.apply(this, arguments); // get post ID var post_id = 0; if (typeof( id ) === … Read more
open modal window
When the Update button is clicked in Quick Edit the post_meta are properly updated, values saved in database, but column’s content is not updated by Ajax. Indeed, the Quick Edit feature makes no attempt to update or reload individual admin columns. It instead replaces the row with whatever the AJAX endpoint returned. Here is the … Read more
I found what was the problem. the code with actions were wrapped bu this following code : global pagenow; if ( $pagenow === “edit.php” && isset( $_GET[‘post_type’] ) ){} When there is an ajax call, $pagenow === admin-ajax.php and $_GET === [ [“_fs_blog_admin”]=> string(4) “true” ] so that could not be fired.