I’m currently trying to figure out how to get my custom url rewrites working (WP Rewrite the last two parts of the URL), while doing this I came across...
I have an unusual use of add_rewrite_rule (is there a usual use?) and I am getting some unexpected behavior. First here is my code: if(!empty($list_view_template)) add_rewrite_rule( "{$list_view_template}/(.*)?", 'index.php?mlscrit=$matches[1]/list-view/&pagename=" ....
When we want post data from frontend to WORDPRESS everyone says i must use admin-ajax.php. But i can add query vars and receive posted data in my plugin file...
I’m hoping someone can help me fill in the gaps in my understanding of page templates and query vars: I’ve registered a custom taxonomy ‘stream’, and have set up...
Closed. This question is off-topic. It is not currently accepting answers. Asking to recommend a product (plugin, theme, book, hosting provider), tool, library or off-site resource is out of...
I am having problems when querying a WP_Query Object when a user has a role different than administrator My WP_Query is this: function remove_new_c_post($author_id,$value_id) { $query = new WP_Query(...
Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or...
I’m trying to pass a variable via a URL parameter and rewrite + force ‘redirect’ it. In other words, I have: /dir1/dir2/?my_var=123 and I want: /dir1/dir2/123/ Through the following...
I’m attempting to modify existing rewrite rules generated by WordPress in order to override the default rewrite rules generated. I’m using the filter hook rewrite_rules_array to obtain an array...
I have an issue with passing an array of strings to a SQL statement in a WordPress plugin, because the prepare method adds a backslash before each apostrophe. //...