Tjendol
Forum Replies Created
-
Thanks for your replies!
I wonder if it has something to do with the way I set up my product selection.
I have two dropdown fields, one for product type and one for size. Different product types can have different sizes.When I have a default variant set, the clear option does not show. When no default value is set, the clear option shows as expected.
I found out the clear option reappears when I set both fields to “choose an option” and next change them to a different option. Then the “clear” option shows again.
Obviously, this is a terrible user experience.Anyway, disabling the default product selection now seems the only solution for me.
Thanks again!
Forum: Hacks
In reply to: commenter should see only his comments and those of the post authorYes, I think I understood that the first time 🙂
I came here with a question because I tried to solve this and I couldn’t…then after playing around with the core files, which I should never, ever, ever EVER do, 🙂 it worked…
I’m pretty new to all of this so I wasn’t aware of the danger/risks involved.
So…any hints about a correct approach?
I ended up in that template file in the first place because I couldn’t find a file in which those comments are defined…
The files I found used this:
wp_list_commentsand that’s where I got stuck…
Forum: Hacks
In reply to: commenter should see only his comments and those of the post authorGood point. It really wasn’t my intention to encourage others to do so.
I was happy it worked and wanted to share.
So if you have a better solution, please do the same!Forum: Hacks
In reply to: commenter should see only his comments and those of the post authorHi,
For anyone that’s interested:
I had to edit the /wp-includes/comment-template.php file using the code mentioned above.
Forum: Hacks
In reply to: commenter should see only his comments and those of the post authorOk, I just found out I need to use:
$current_user->user_logininstead of
$current_user->IDThe code would then become:
<?php global $current_user; get_currentuserinfo(); $author=get_comment_author(); if($author == $current_user->user_login): ?> 'comments you need to show' <?php endif; ?>But now I’m still having trouble to filter the comments. I’m not sure where to place it or if it could work.