Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script
Answered using insights from @Milo.
Answered using insights from @Milo.
Remove media button from the custom post type support editor
jQuery Ajax / Modal admin event not firing since 3.6. Seems to not recognize “a” tag
I found solution: IF you’re using permalinks you have to use get_permalink() function: <?php $searchresults = site_url(‘/?p=1365’); ?> change to <?php $searchresults = get_permalink( 1365 ); ?>
In case any poor soul runs in to something similar, I’ve found the problem: define(‘WP_DEBUG’, false); Running debug mode (as I do on all dev sites), was throwing a warning, but it was being returned in the ‘admin-ajax.php’ which was preventing the images from showing/uploading and returning the appropriate values etc. I cannot believe the … Read more
Just change this: <?php if( is_page() ) { ?> to: <?php if( is_page() && !is_page(42) ) { ?> You can also try to use is_home() and is_front_page(). These 2 will be even better, since they are more universal (not based on pageId). If you change the page that is your home/front page, this will still … Read more
The footer doesn’t run in the global context, so the variable $map_vars is not in the correct scope. To keep the variable and the callback in the same scope, you could use a class: class Map_Var_Example { public static $map_vars; public static function map_data() { var_dump( self::$map_vars ); } } Map_Var_Example::$map_vars=”Test”; add_action( ‘wp_footer’, array( ‘Map_Var_Example’, … Read more
site is loading fully zoomed in on mobile devices
You could try a plugin like iThemes Exchange and set the price to $0 so they’re essentially “buying” your CV for free. Then you’d have their info in your customer list.
I can’t tell exactly what you are asking but this comment… What I did recently is that I created a wordpress dir on FTP server and move stuff there, but now people would have to input mydomain.com/wordpress to access my webpage… … makes me wonder it you don’t have a subdirectory install. If that is … Read more