IT Nursery
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...
  • June 2, 2022
  • 0 Comments
IT Nursery
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=" ....
  • June 2, 2022
  • 0 Comments
IT Nursery
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(...
  • May 29, 2022
  • 0 Comments
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...
  • May 25, 2022
  • 0 Comments