How to get Wishlist on Custom Post Type?

Tarak
Jan 15, 2020 03:06 PM 1 Answers
Member Since Jan 2020
Subscribed Subscribe Not subscribe
Flag(0)
Hello, As asked on the forum, I am given to understand that the plugin can also work on custom post type... 1) I have a custom post type Recipe.. 2) I would like that to appear on the recipe custom post type 3) I would like to know one user can see another user's public wishlist to vote 4) Any CSS/ Settings to change to the background of the Vote/Like/Social icons to match the branding? 5) The error is shows in video https://www.loom.com/share/1b4a849577b54ac5b24ab65e48ad0db0
2 Subscribers
Submit Answer
Please login to submit answer.

1 Answers
Sort By:
Best Answer
0
PickPlugins
Jan 16, 2020
Flag(0)

Welcome to our forum.

#2. you can use following code your theme files to display wishlist button

<?php
$post_id = get_the_id();
echo do_shortcode( '[wishlist_button id="'.$post_id.'"]' ); 
?>

If you don’t know where to place the above code please use following code use under your theme functions.php file to display automatically wishlist button after content.

add_filter('the_content', 'wishlist_button_after_content');
function wishlist_button_after_content($content){

    $post_id = get_the_id();
    $content .= do_shortcode( '[wishlist_button show_count="yes" id="'.$post_id.'"]' );

    return $content;
}

I have checked your admin and i don’t have access to edit theme files so i can’t add these code.

#3, Other users will see the total vote count, not who voted.

#4, custom CSS for view count, vote, social icons background color

.single-wishlist .pickplugins_wl_meta .wl_meta {
    background: #f5daa9;
}

#5. please use following CSS to fix alignment issue on shop page

.pickplugins_wl_wishlist_buttons {
    margin-left: 25px;
}

see the screenshot

View post on imgur.com

Let me know for more help.

Regards

Tarak
- Jan 22, 2020 12:59 PM
Flag (0)
0

Can you please respond to this… I thought paid plugins do get quicker support… pls help

Tarak
- Jan 17, 2020 05:50 PM
Flag (0)
0

Thank you soooo much for the previous detailed response.. awesome.. all of the solutions worked.. I have some more related issues/ bug/ questions/ feature requests.. I have tried to explain with the video to help understand the points… pls help me
https://www.loom.com/share/aa7e05d152174400a6796fc26b9c9f29

– [ A] need the fix the line below the Wishlist in the shop page to be fixed

– [ B] Can the Wish list page have a sidebar? The wish list is not utilising the whole page of the screen.. the default page layout has the sidebar but not displaying

– [ C] The like button is not getting the colour immediately after liking it

– [D ] Change the default text in the search from Best Books to My Collections or something that I can change later…

– [E ] Is there a way .. users own wish lists can be shown in a separate way from the public ( other users ) wishlist?

– [ F] Can I Change the red colour button of the create wish list pop up… to be brand Orange/ Purple colour??

– [ G] The wish list is now working for all custom post pages..Now that custom post is appearing in all types of custom post ( recipes/posts/products/shop/events) .. can that be controlled by any means? I don't want it on Events and default Posts

– [H ] Can I make fixed category/tags of wish lists.. so that they can be filtered easily..? Or placed on celebrating pages by tags?

– [I ] Seems I can put others Wishlist into again in my Wishlist .. that's a nice feature to have. Thank you

– [J ] Can I have a custom CSS for Recipe Page.. to match the style and also if the name can be alternated to Recipe Collection etc….

– [K ] Can the wish lists can be filtered by custom post types and then listed on separate pages? like Product Collections page ( listing all wishlist by all users in one page showing only products wishlists) .. Ricepr collection Page ( showing wishlists that only post type recipe by all users )

– [L ] Once you click the great icon to create the Wishlist the box with the names are not nice to look … pls help

PickPlugins
- Jan 16, 2020 02:09 PM
Flag (0)
1

You can use following shortcode [wishlist_archive] to display all wishlist created on your site, and another shortcode comes with search [wishlist_search]
Hope that helps

Sign in to Reply
Replying as Submit

Please use https://imgur.com/upload to upload your screenshot and share url here.
You can't upload any files or attachment to our server directly for security reason, you can use 3rd party website and share file url here. here is the top file sharing website you can use.

Please login to see your tickets