My question comes from this one. I have never really touched on rewrite rules as frankly, they still do not make sense to me What I have I have...
I have been stuck on this for hours and tried all these different methods but none seem to work. I’ve seen other threads with a similar problem but the...
I’m building a site where every state and city in the US has a landing page. I have a database of every city, state, and zip code, set up...
What happens if in register_taxonomy( $taxonomy, $object_type, $args ) I set query_var arguement to true? I read here this query_var (boolean or string) (optional) False to disable the query_var,...
I’m wondering if it’s possible to determine WP_Query parameters by only using the given page URL. The reason I’m trying to do this because I’m developing a SPA theme...
I’m having a hard time wrapping my head around the uses cases/best practice for the ‘query_vars’ filter, and query_vars in general, when I could use the $_GET global instead....
I’m working from about 4 months on developing a Plugin. This plugin make in a page an entire app, using the powerful of WordPress. So, I’ve decided to create...
I have a page called mypage and a custom query var called mycustomvar, I am trying to rewrite the following url: http://example.com/index.php?name=mypage&mycustomvar=someword to http://example.com/mypage/someword using add_rewrite_rule( '^mypage/([^/]+)/?', 'index.php?name=mypage&mycustomvar=$matches[1]', 'top'...
I have the following I’m trying to enqueue in functions.php wp_enqueue_script( 'param-example', 'https://domain.com/example?f=j&s=w&c=t', array(), null ); Except WordPress is escaping the ampersands in the HTML which is breaking the...
I have a custom post type called news and in order to distinguish current and old news posts I have a custom field where the client can mark a...