Title: Echo ajax loop progress
Last modified: June 21, 2020

---

# Echo ajax loop progress

 *  [john.m.c](https://wordpress.org/support/users/johnmc-1/)
 * (@johnmc-1)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/echo-ajax-loop-progress/)
 * Hi good morning!!
 * Do you know how to echo/print the progress in this ajax loop for creating posts?
   I just want to print after it creates a new post (inside the loop). The gists
   codes below it print everything when it’s done. I just want to make some print/
   echo progress thing. Any tips?
 * php file to loop creating posts
    [https://gist.github.com/jmcausing/a081541b54194d9d7e4fb7c1fdc8a816](https://gist.github.com/jmcausing/a081541b54194d9d7e4fb7c1fdc8a816)
 * jquery
    [https://gist.github.com/jmcausing/170292a5273b561f30bf2a5df159b750](https://gist.github.com/jmcausing/170292a5273b561f30bf2a5df159b750)
 * Screenshot:
    [https://scontent.fceb2-2.fna.fbcdn.net/v/t1.0-9/s960x960/104408218_10213157494491564_6847556267334795685_o.jpg?_nc_cat=110&_nc_sid=ca434c&_nc_ohc=M_4LIXbtgvIAX-iOJTO&_nc_ht=scontent.fceb2-2.fna&_nc_tp=7&oh=d8441932c3f286e57f38f303fffefc69&oe=5F150187](https://scontent.fceb2-2.fna.fbcdn.net/v/t1.0-9/s960x960/104408218_10213157494491564_6847556267334795685_o.jpg?_nc_cat=110&_nc_sid=ca434c&_nc_ohc=M_4LIXbtgvIAX-iOJTO&_nc_ht=scontent.fceb2-2.fna&_nc_tp=7&oh=d8441932c3f286e57f38f303fffefc69&oe=5F150187)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/echo-ajax-loop-progress/#post-13016918)
 * Anything your AJAX code echoes goes back to your JS script as a response, so 
   you have to put it in a format that you check for in your script, like a variable
   named progress, with a percentage complete number. Then your script can update
   the progress bar or number or whatever you choose to show.
    A Google search shows
   many pages explaining how.
 *  Thread Starter [john.m.c](https://wordpress.org/support/users/johnmc-1/)
 * (@johnmc-1)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/echo-ajax-loop-progress/#post-13016927)
 * [@joyously](https://wordpress.org/support/users/joyously/)
 * > so you have to put it in a format that you check for in your script, like a
   > variable named progres
 * Do you mean in the jquery file? Any chance you could provide a very basic example
   please?
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/echo-ajax-loop-progress/#post-13016932)
 * Please do a search for “ajax progress bar” on your favorite search engine.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Echo ajax loop progress’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 2 participants
 * Last reply from: [Joy](https://wordpress.org/support/users/joyously/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/echo-ajax-loop-progress/#post-13016932)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
