I can’t load my images from a js file using wp_localize_script

You’re not accessing the value correctly. The 2nd argument of wp_localize_script is the name of a JavaScript object that your data will be added to. In your case it’s wpa_data. This means that the image_path is accessed at wpa_data.image_path: $(function(){ jQuery(document).ready(function() { $(‘#home’).backstretch([ wpa_data.image_path+”home-bg-slideshow1.jpg”, wpa_data.image_path+”home-bg-slideshow2.jpg”, wpa_data.image_path+”home-bg-slideshow3.jpg”, ], {duration: 2000, fade: 750}); }); })

Access WP files on “server 1”, from “server 2” – using wp-load on an external website

A couple of options file sharing, wherein the two servers can access some of the same files. The details vary according to the VPS technology used — talk to your webhost. See also https://serverfault.com/questions/369080/is-it-possible-to-share-files-between-multiple-vps file syncing, wherein the two servers have separate copies of the files, but the copies are kept in sync. Here I’d … Read more

Add post title as a link parameter

Use this function of wordpress get_permalink( int|WP_Post $post,bool $leavename = false ) Like this… <a href=”https://wordpress.stackexchange.com/questions/338745/<?=get_permalink()?>”>Apply to job </a> Documentation : https://developer.wordpress.org/reference/functions/get_permalink/ Anyways if you want get the title of current post use that: https://developer.wordpress.org/reference/functions/the_title/

Looping to organize and display custom posts by category using PHP and WordPress

Add this after $args $categories = get_terms(‘category’, $args); //get all categories $count = count($categories ); //count categories if ( $count > 0 ){ //Check if you got some categories foreach ( $categories as $category ) { $args[‘cat’] = $category->term_id; //get the id of each category and add it as a parameter $loop_our_work = new WP_Query( … Read more