• 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

    (@takashimatsuyama)

    Hello @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.

    Thanks

    Thread Starter christianj40

    (@christianj40)

    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

    (@takashimatsuyama)

    Hello @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 for usage.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ajax Refresh’ is closed to new replies.