jQuery AJAX url wit variable

For an AJAX call I try to get the url from a variable jQuery(document).ready(function($) { var url = ‘test’; $.ajax({ ‘url’: url, ‘data’: ({todo: “food-page_catfetch”}), ‘success’: function(data) { $(‘.catspinner__food_page’).fadeOut(“fast”, function(){ $(‘#food_result__cats’).html(data); }); } }); }); If I look in the inspector I see this jQuery(document).ready(function($) { var url = ‘test’; $.ajax({ ‘url’: url, ‘data’: ({todo:…

Details

Custom Elements + Joins

I’m having a bit of trouble wrapping my head around an SQL issue with a custom Element. One column in my Element’s table—for the case of this question, let’s call it myplugin_things—has a foreign key pointing to another custom Element’s table, myplugin_inventors. So, every Thing in the system has an inventorId column, and every Inventor…

Details

WordPress Own Rewrite Rules

im trying to rewrite a Url with the following code in functions.php add_action(‘init’, function() { add_rewrite_rule(‘/agbz\/(\w*)\/\?page=(\w*)&memberID=([a-z]{1}\d*)&land=(\w*)&fa=(\w*)&vorname=(\w*)&nachname=(\w*)/miu’, ‘index.php?page_id=$matches[1]&page=member&memberID=$matches[3]&land=$matches[4]&fa=$matches[5]&vorname=$matches[6]&nachname=$matches[7]’, ‘top’); }); My URL is domain.de/agbz/userprofile/?page=member&memberID=Z4911331&land=deutschland&fa=zahnarzt&urltitel&vorname=Henryk&nachname=Donnerstag Can someone help me out of this? The URL is the same as before

Details