Hello I am using your shortcode for a custom list view ([ccc_my_favorite_list_custom_template]) along with the function ccc_my_favorite_list_custom_template( $my_favorite_post_id )
– this works as expected.
I am wondering if would be possible to use this shortcode twice, but associated with different layout – any ideas if this is possible or suggestions on how to achieve this. Alternatively how can access the $my_favorite_post_id array from PHP?
]]>Good day,
I encountered a problem while using popular plugins.
WordPress reports:
A PHP session was created by calling the session_start() function. For hitting REST API and loopback requests. The session should be closed using session_close() with an HTTP prewrite request.
In app/Bootstrap.php I hit the beginning of the session:
if ( !session_id() ) session_start();
If I turn off the plugin the problem no longer appears. It also causes other complications for me, I’m not a programmer so I don’t know how to fix it, so I want to ask if it’s possible to fix it?
Thank you and have a nice day.
]]>I am seeing a sporadic error when trying to output a list of favorites on a page. Anonymous visitors are able to add to the list and I can see the array stored in local storage, but when visiting the favorites listing page we get “Forbidden” rather then the list of post. This seems to be coming from your list_posts_action() function? We are using the LiteSpeed caching plugin and thinking this is issue and if simply excluding the listing page from the cache would resolve the issue?
]]>Does anyone know if it’s possible to use this plug-in on multi lingual sites? It’s working great for the primary language but not at all for the secondary ones ??
]]>Has anyone successfully extended this plugin to include a share function, ie; adding a unique ID parameter which so a wishlist can be emailed?
Would need to work without logging in.
Hello,
Thank you for this plugin.
So far, it works perfectly when testing for users who are not logged in. However, when I am logged in there are some problems:
favorites
page I set up to display the list isn’t working properly. If I try to unfavorite a post it goes away, but when I refresh the page it is there in the list again. Also, the number of favorites says 1/2 or even 3/5 even though I have only 1 or only 3 favorites saved (this might be because after running into the previous issue I clicked the favorite button a few times). delete all
and load more
only show up when the other shortcode is also loaded: [ccc_my_favorite_list_menu slug="favorites"]
. delete all
link. However when I refresh the page it says I have 0/1 favorites. In conclusion, something funny is going on with the database for logged-in user, but it works just as expected for users who are not logged-in. I should also mention I am testing the plugin on localhost
.
通常では、ハートのボタンを押すと、
ハートが黒い 登録されている
ハートが白い 登録されていない
になると思います。もしくは、この真逆になると思います。
しかし、最初の1回目の登録のみは、登録直後に自動更新され、ハートが黒→白→黒、と戻ります。黒になります。
2個目以降の場合は、黒→白で正常のようです。
また、ページの更新後は常に、全部黒になります。
つまり、登録してあるページも、登録してないページも、全部黒になります。
登録してある状態(黒)→登録を解除(白)、になります。
更新すると全部黒に戻り、登録してない場合は、登録してない(黒)→登録する(白)
色がめちゃくちゃなので、大変な状態になっています。
直す方法はありますでしょうか?
<font _mstmutation=”1″></font>
]]>Hello Takashi
I’ve used our plugin for one year now and it works fine. I’d like to do the following:
Hello, no load more button even I use this shortcode [ccc_my_favorite_list_results posts_per_page=”10″] and add to favorite more than 10 posts.
]]>How long will the plugin keep the saved posts to users without registration? Is it possible to configure it to keep the favorites forever for no registration users?
]]>Firstly, a great plugin. My permalink structure is as follows: /%postname%, all my links do not have a slash at the end of the links. I use this shortcode: ccc_my_favorite_list_menu slug=”” text=”” style=” and the button adds a slash at the end of the link. This results in a 301 redirect. Is there a way I can prevent this?
]]>Hello,
How do I add the favorite button in my blog listing?
The link to my website where the blog listing is https://www.hulpbijhb.nl/passend-onderwijs/
I want the favorite buttons in the images (like this website https://www.bol.com) or next to the ratingstars.
I hope you can help me with this.
Hello,
In my case, the plugin worked well for a while, but hours later it no longer works. The favorites button is always activated when the page loads with the “save” class and I can’t find out what caused this problem.
The only way i’ve found to solve the problem is to remove the line 62 in list.js :
$('.'+ CCC.favorite.toggle_btn).addClass(CCC.favorite.save_classname);
Is this line really useful ??
Thank you for your plugin !
If we have more the one favorite link on a post is there away to synchronize all of them base on the users action . Add to Favorites / remove from favorites?
]]>Is there a good way to ‘add to favorites’ and then take the user to the favorites page? Is there an addEventListener I can use or do I just need to create an onclick javascript function that fires after the favorite action is completed.
Suggestions would be great!
]]>Hey! I tried using you plugin which is working fine! I wanted to use custom list view with elementor shortcode. Which is [elementor-template id=”5145″]
How can I achieve this with [ccc_my_favorite_list_custom_template style=””]
Thanks!
]]>We use a Vue.js plugin with a router that generates client-side URLs. They show detail pages of items. Is it somehow possible to make these detail pages favoriteable? They all got the same post-id of the site, that contains the plugin, but their URL contains a unique ID.
I wonder why I can add a custom post-id with the shortcode for the heart-button. I was hoping maybe I can fill this somehow dynamically to produce Favorites for different detail pages, but there is nothing on the favorite list, if I enter some custom ID.
Hi,
Is it possible to add dynamic class (via ACF Repeater) to My Favorites?
I use Oxygen Builder’s repeater and if I add My Favorites’ shortcode into the repeater, if I click an of My Favorites’ icon, it will impact other icons as well.
Thanks.
]]>Hello,
is it possible to use the plugin for custom post types and also to show the favorites’ list separated per each post type?
Thank you!
I was under the impression that favorites could be save by non-logged in users. But the page I have the shortcode for favorites list is requiring login. Do people have to be logged in with a user account for this plugin to work? Thanks
]]>Hi,
Thanks for your great plugin.
Is there a way to get the styling of the icon to update synchronously when you have the shortcode inserted more than once on a given page?
On the example URL above, I have the favourites shortcode in three locations. If I save the content by clicking on the “save” heart, the other save hearts stay outlined instead of changing to solid.
Is there a way to get all three hearts to update to be solid, no matter which “save” heart someone clicks?
Thanks.
]]>Hi again,
Still playing with your fantastic plug-in. I found a beta version on Gitehub and mixed some codes. It seems almost all functions work now. Although 2 things are still unclear. I hope you can help me.
Screenshot: https://lebonbusiness.fr/wp-content/uploads/2023/01/error.png
I am not a great programmer so if you have a solution, keep it simple. I always say, “talk to me as if I where 5 years old”. (lol)
Thanks again and a Happy New Year!
Wil
]]>Is there an if statement I can use to test whether the favorite (heart) is or is not active/already clicked? I want to add text next to the button/heart if it has not been clicked and no text if it has already been chosen/clicked.
]]>Hello,
really nice and helpful plugin. But i have one problem – i need to save the full url including query string. St the moment just the normal url ist saved (without query strings).
Thats possible to integrate?
]]>デフォルトで設定されているicomoonのハートマークが表示されず、□に置き換えられてしまいます。
この□を非表示にしたうえで、「お気に入り」の文字列に置き換える方法が知りたいです。
こちらのトピックやこちらのトピックを参考に、
1.テーマから以下のCSSを上書き
.ccc-favorite-post-count > a::before { }
.ccc-favorite-post-toggle > a::before { }
.ccc-favorite-post-toggle > a.save::before { }
2.デフォルトのCSSを破棄してテーマのCSSでスタイルを設定後、ショートコードでスタイルを呼び出す
……のふたつを試しましたが、どちらもなんの変化もありませんでした。
WordPressは6.1、テーマはCocoonを使用しています。
]]>Hello! Is it possible to call a post’s ACF field with the [ccc_my_favorite_list_results] shortcode? Even a roundabout solution would be great!
]]>Hello Community, I am currently using or testing the favorite plugin – but after loading the page – the buttons / blog work – only after the 2nd click on them
So the process – page loaded wants to put something on the favorites list – doesn’t only work if I click this button or another one again
LG Qeib
]]>初めまして。
プラグイン制作?提供誠にありがとうございます。
あまりWordPressなど詳しくないので恐縮ですが
導入方法についてご教示いただけたらと思います。
利用しているWordPressバージョン:5.8.2
【困っていること】
1. ボタンをクリックしてもなにも起きない
2. my_favorite_select_button以外表示されない
行った内容は以下です。
1. プラグインインストール+有効化
2. ショートカットコードを以下のようにphpファイルに設置
<?php
$postID = the_ID();
echo do_shortcode('[ccc_my_favorite_select_button post_id="'. $postID .'" text="favoriteButton" style="myStyleName"]');
?>
<?php echo do_shortcode('[ccc_my_favorite_list_menu slug="favorite" text="test" style="string"]'); ?>
<?php echo do_shortcode('[ccc_my_favorite_list_results class="string" style="string" posts_per_page="" excerpt=""]'); ?>
3. ブラウザ上で出力を確認
<div class="ccc-favorite-post-toggle" data-ccc_my_favorites-select_button-style="myStyleName">
<a href="#" class="ccc-favorite-post-toggle-button" data-post_id-ccc_favorite="6296">
<span class="text">favoriteButton</span>
</a>
</div>
<div class="ccc-favorite-post-count" data-ccc_my_favorites-menu-style="string">
<a href="//localhost:3000/favorite/">
<span class="num"></span>
<span class="text">test</span>
</a>
</div>
<div id="ccc-my_favorite-list" data-ccc_my_favorites-list-style="string" data-ccc_my_favorite-excerpt="0" data-ccc_my_favorite-posts_per_page="100" class="string"></div>
画面上にはボタン(my_favorite_select_button)は表示されますが、クリックしてもなにも起きません。
(select.jsが動作してない?)
また、Googleの検証ツールで確認したところ
.ccc-favorite-post-count がdisplay:noneになっており画面上に表示されないようなのですが
具体的にはどの属性地にどのようなものを入力したらうまく表示されたり動いたりしますでしょうか。
備考:
functions.phpなどはなにも書き加えておりません。
https と localhostで検証しておりますがともに事象に変わりありません。
拙い質問で申し訳ございません。
ご確認よろしくお願いいたします。
Hi,
i have a question Can other users even admins click favourite and group other users in a folder ?
Thanks
]]>I’m trying to show only reviews created but the logged in user. When a user is logged in it works perfectly but when no user is logged in it shows all reviews but I want no reviews to show. Is this possible?
]]>