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

How to build custom WP admin with custom URLs

WordPress has some pretty solid documentation for this. What you are asking for will require that you learn a good bit of programming. Check out here for basic plugin development information: https://codex.wordpress.org/Writing_a_Plugin This page has specific information about making your own administration panels: https://codex.wordpress.org/Adding_Administration_Menus If this is something you are passionate about I would consider … Read more

Remove subfolders from URL

You need to make the WP site url and home url differ in Settings / General. The home url should be example.com, while the site url (where WP lives) should be example.com/wp (or wherever you put it). You can hardcode these in your config file: define(‘WP_HOME’, ‘http://example.com’); define(‘WP_SITEURL’, ‘http://example.com/wp’); WP should know how to take … Read more