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

How to have numeric URLs in Posts and Pages

Hope the following code might help add_filter( ‘wp_unique_post_slug’, ‘mg_unique_post_slug’, 10, 6 ); /** * Allow numeric slug * * @param string $slug The slug returned by wp_unique_post_slug(). * @param int $post_ID The post ID that the slug belongs to. * @param string $post_status The status of post that the slug belongs to. * @param string … Read more

Adding a hook to ‘parse_request’ so that siteurl/pagename/xyz ignores “xyz”

I would just add a rewrite rule rather than try to modify query parsing. function wpd_series_query_var( $vars ){ $vars[] = ‘wpd_series’; return $vars; } add_filter( ‘query_vars’, ‘wpd_series_query_var’ ); function wpd_series_rewrite_rule() { add_rewrite_rule( ‘^series/([^/]+)/?$’, ‘index.php?pagename=series&wpd_series=$matches[1]’, ‘top’ ); } add_action( ‘init’, ‘wpd_series_rewrite_rule’ ); Don’t forget to flush_rewrite_rules() after adding new ones. You can then get wpd_series anywhere … Read more

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