Custom Fields
Re-Envisioned
Support MB Favorite Posts Few issues with [mbfp-posts] shortcode

  • Creator
    Topic
  • #29957
    Peter
    Participant

    Hello, guys. This is really awsome plugin but [mbfp-posts] shortcode needs some urgent improvements to be fully usable.

    For example:

    1. How to remove "post status" table in this shortcode? It is completely useful for all my cases. I must remove it via css row by row because I see no other possibility here
    2. How to optionaly hide published date table in this shortcode? Also I must remove it vis css

    Also pagination here is a must. When someone add 100 favorite posts, my site does not look good then. Please allow some pagination - for example: maximium 10 or 20 posts per page... Then it makes sense.

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #29975
    Long Nguyen
    Moderator

    Hi Peter,

    Thank you for your feedback.

    It's just a default favorite posts dashboard. You can follow this documentation to create your own dashboard with coding
    https://docs.metabox.io/mb-favorite-posts/#data

    #29980
    Peter
    Participant

    Sorry but I can’t see any parameter related to [mbfp-posts] shortcode in your link…. or any other solution realated to my issue (not only my I think….)

    #29988
    Long Nguyen
    Moderator

    Hi,

    The link to the documentation above has the guildline to create a custom query to show the list of favorite posts. You can do the following:

    $post_ids = get_user_meta( $user_id, 'mbfp_posts', true );
    $query = new WP_Query( [
        'post_type' => 'post',
        'post__in'  => $post_ids,
    ] );
    // Do something with $query.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.