WordPress Page Protect forwards to Admin Login

I can confirm that Password Protected pages still work as normal in 3.4.1. The password protect form does submit the password to /wp-login.php?action=postpass where that file deals with authentication. Upon successful or failed login the file will redirect you back to the page the user was on. One thing to be aware of is that … Read more

create 2 custom columns in page edit in Admin panel

functions attached to manage_pages_custom_column get fired for every custom column, you have to check the name of the column within the function to only output data for that specific column: add_action( ‘manage_pages_custom_column’, ‘AddColumnValue’, 10, 2 ); function AddColumnValue( $column_name, $post_id ) { if( ‘thumbnail’ == $column_name ): echo ‘Header Image data here’; elseif( ‘cssColor’ == … Read more

advanced paging in wordpress

In case, if you are asking about nesting of pages, then you do the following – Create the edit page, and make the profile page the parent of the same (you can see this take effect when you update the page and the url changes to www.mysite.com/profile/edit) Similarly, create the image page, and make the … Read more

Publish page by invoking submit via jQuery

Trigger the click event of the publish button instead, and let WP do the work. <script> jQuery(document).ready(function( $ ) { $( “#secondary-publish” ).click(function () { $( “#publish” ).click() }); }); </script> Don’t use language (it was deprecated in HTML 4.01!) – you can drop type too (WP now has an HTML5 doctype).

Can I connect a page to a taxonomy?

You can register taxonomies for objects (such as posts & pages) like so: add_action( ‘init’, ‘wpse_71914_assign_page_taxonomy’ ); function wpse_71914_assign_page_taxonomy() { register_taxonomy_for_object_type( ‘taxonomy_name’, ‘page’ ); }

Password Protect Pages Not Working

Replace all of this: $my_postid = get_page( $page_id );//This is page id or post id $content_post = get_post($my_postid); $content = $content_post->post_content; $content = apply_filters(‘the_content’, $content); //$content = str_replace(‘]]>’, ‘]]>’, $content); echo $content; …with this: the_content();