• mhmadfarooq

    (@mhmadfarooq)


    Thanks for this plugin

    I already installed it and it’s working great…
    But when I convert my site into static html using Simply Static plugin, the favorite list isn’t working showing an error.
    The add to favorite button works fine and add the post id to local storage, but favorite list isn’t showing.

    Can u solve this problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takashi Matsuyama

    (@takashimatsuyama)

    Hello, @mhmadfarooq
    Thank you for your question.

    Unfortunately, however, it may be difficult to solve this problem completely.
    Because basically this plugin’s favorites list requires PHP (“WP_Query”) and does not work with static HTML.

    I just tested it using “Simply Static”.

    If there is a possibility, that the logged in users cannot be handled, but that the folder and index.html of the favorites list can be placed on the same level as “/wp-admin/” in the domain where WordPress (“/wp-admin/admin-ajax.php”) resides (/ favorites/index.html).
    In addition, the HTML code for “/favorites/index.html” needs to be adjusted.

    var CCC_MY_FAVORITE_LIST = {"api": "https://your_wordpress_domain/admin-ajax.php",

    In my case, after exporting with “Simply Static”, the “://” was missing, as in

    var CCC_MY_FAVORITE_LIST = {"api": "httpsyour_wordpress_domain",

    , so I had to fix it.

    Static HTML needed to run on the same domain and root as WordPress (https://your_wordpress_domain).

    In my brief testing, these methods seem to work, albeit in a limited way.

    Thanks

    Thread Starter mhmadfarooq

    (@mhmadfarooq)

    Good… thank you.
    I will give it a try.

    Thank for ur time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Static site error’ is closed to new replies.