WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)

Step 2. However, when I submit an un-matching password, the form is redisplayed and URL is now http://example.com/wp-login.php?action=resetpass&key=xyz&login=zyx. Notice, that action has changed. When I attempt this with an invalid key I get redirected to http://example.com/wp-login.php?action=lostpassword&error=invalidkey. Anyway, the infinite loop is occurring because you are the condition in_array( $action, array(‘rp’, ‘resetpass’) ) remains true for … Read more

Weird: /?name in URL leads to blog

Those are reserved keywords When you visit a WordPress blog you have: blogindexpage/?queryvariables=queryvalues So for a search request: example.com/?s=searchterm For a post/page of ID 12: example.com/?p=12 etc etc Pretty permalinks hides all this by using regular expressions to map nice looking URLs on to their equivalents. This doesn’t prevent someone from still doing that though, … Read more

Having Problem On Getting WP Post Gallery Images URL

As I’ve explained elsewhere, you can modify the image sizes of the get_post_gallery() or get_post_gallery_images() with a simple filter: // Add a filter for full gallery size: add_filter( ‘shortcode_atts_gallery’,’wpse_full_size_gallery’ ); $gallery = get_post_gallery( get_the_ID(), false ); // Remove the filter: remove_filter( ‘shortcode_atts_gallery’,’wpse_full_size_gallery’ ); where: function wpse_full_size_gallery( $out ) { $out[‘size’] = ‘full’; // Edit this … Read more

add_query_arg() One Key with multiple values

[*] You have to do a search and replace on $url like the following – $url = add_query_arg( array( ‘count’ => ‘100’, ‘property’ => array( ‘abc’, ‘xyz’ ) ), $base_url ); // following line will remove [*] and * can be nothing or 0-9 $api_url = preg_replace( ‘/\[\d*\]/’, ”, $url ); // Output will be … Read more

Preview Image Path in Admin Section

This is not a answer, is an extended comment with the link to the solution. First, while testing, one of my test sites wasn’t showing the Featured Image uploaded to the folder /wp-content/uploads/POST_ID/image_name.jpg. Same problem as the OP. But, it was not displaying any path to the image. And the bug was that the installation … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)