Title: Ajax Refresh
Last modified: June 13, 2022

---

# Ajax Refresh

 *  [christianj40](https://wordpress.org/support/users/christianj40/)
 * (@christianj40)
 * [4 years ago](https://wordpress.org/support/topic/ajax-refresh-3/)
 * Hello!
 * I want to know how I can refresh the page if someone unfavorites a post? I have
   created my own list that shows the user’s favorites, and I want to refresh the
   page when they unfavorite a post.

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

 *  Plugin Author [Takashi Matsuyama](https://wordpress.org/support/users/takashimatsuyama/)
 * (@takashimatsuyama)
 * [4 years ago](https://wordpress.org/support/topic/ajax-refresh-3/#post-15732266)
 * Hello [@christianj40](https://wordpress.org/support/users/christianj40/) ,
    Thank
   you for your question.
 * I think it is possible by writing additional Javascript or by editing the JS 
   file of this plugin directly.
 * There is a topic in this forum that may be helpful.
    - [Triggering Javascript on List Load](https://wordpress.org/support/topic/triggering-javascript-on-list-load/)
    - [Removing items then page reload](https://wordpress.org/support/topic/removing-items-then-page-reload/)
 * Thanks
 *  Thread Starter [christianj40](https://wordpress.org/support/users/christianj40/)
 * (@christianj40)
 * [4 years ago](https://wordpress.org/support/topic/ajax-refresh-3/#post-15732677)
 * Hello!
 * Thank you for your reply, these topics are both dealing with the list option 
   shortcode correct. I need to reload whenever a post is unfavorited, are you saying
   the JS you and the other people mentioned in these topic will work without me
   using the list option shortcode.
 * Thanks
 *  Plugin Author [Takashi Matsuyama](https://wordpress.org/support/users/takashimatsuyama/)
 * (@takashimatsuyama)
 * [4 years ago](https://wordpress.org/support/topic/ajax-refresh-3/#post-15738911)
 * Hello [@christianj40](https://wordpress.org/support/users/christianj40/) ,
    Thank
   you for your reply.
 * Unfortunately, when listing user’s favorites in this plugin, the easy way to 
   perform “Ajax Refresh” is to use shortcodes.
 * There are two types of shortcodes for listings.
 * **## Standard shortcodes that generate HTML**
 * Shortcode: `[ccc_my_favorite_list_results]`
 * **## Custom shortcodes that allow you to create your own elements for output**
 * If you would like to add your own functionality, please try this shortcode.
 * shortcode: `[ccc_my_favorite_list_custom_template]`
 * You can customize the list view.
 * Please see [the related topic](https://wordpress.org/support/topic/custom-template-74/)
   for usage.
 * Thanks
    -  This reply was modified 4 years ago by [Takashi Matsuyama](https://wordpress.org/support/users/takashimatsuyama/).

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

The topic ‘Ajax Refresh’ is closed to new replies.

 * ![](https://ps.w.org/my-favorites/assets/icon.svg?rev=2459439)
 * [My Favorites](https://wordpress.org/plugins/my-favorites/)
 * [Support Threads](https://wordpress.org/support/plugin/my-favorites/)
 * [Active Topics](https://wordpress.org/support/plugin/my-favorites/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-favorites/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-favorites/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)

 * 3 replies
 * 2 participants
 * Last reply from: [Takashi Matsuyama](https://wordpress.org/support/users/takashimatsuyama/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/ajax-refresh-3/#post-15738911)
 * Status: not resolved