• Hi

    Is this doable please?
    I would like to have a custom field storing a status of a bookmark. Doesn’t really mater if that’s true/false or text string like ‘bookmark’ & ‘bookmarked’

    Is this possible please?
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sabuj Kundu

    (@manchumahara)

    Not impossible. But a post is bookmarked or not depends on current user, it will store 100s of custom field in meta table which is not good. If you explain what you need actually we can find a better idea.

    Thread Starter cansonski

    (@cansonski)

    Thanks for getting back to me.

    I’m trying to allow logged-in users to filter through posts based on categories, tags and would like to give them a way to filter through bookmark status as well. So they can only see ‘not bookmarked’ posts within certain category for example.

    I use CustomViews plugin for filtering by category/tag and I’m just looking to combine CBX Bookmark plugin with it.

    Please see https://ibb.co/rQHMCfK for a rough idea.

    So a filter called WATCHED is obviously the one I’m trying to make to work now.
    CustomView plugin can filter by the value of a custom field, so my initial idea was to add a custom field which would then check the status of a bookmark like here:
    https://gist.github.com/manchumahara/043cb79fc98e9ea5939354af50e22766

    I think I was trying to put the code above into a custom field somehow.

    Apologies if it doesn’t make any sens.

    Thanks a lot

    Plugin Author Sabuj Kundu

    (@manchumahara)

    @cansonski as mentioned we don’t store custom post meta, even we didn’t use the wordpress core tables to store data, we used custom table for bookmarks and category. for our own shortcode’s output display we don’t use wp query or query from core tables but we do custom query to query from our custom table which means it doesn’t work with wordpress regular loop functions and filters. WordPress post meta table used for storing extra information of the post same way for user meta table for user’s extra information. Here you need both user and post because user bookmarks a post, same post can be bookmarked by another user. So, using meta table is not in use case here and we didn’t use that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to put status of a bookmark into a custom field’ is closed to new replies.