• Resolved violetta

    (@violetta)


    Hi there,

    In settings, I’ve activated settings in my custom post types. I’ve added buttons into my Elementor templates. The buttons appear to work, but when I try to view my favorites it says “No favorites yet.”

    Here’s the shortcode I’ve used on the user profile page for displaying their favorites. Is there a mistake?

    Ateliers

    [user_favorites include_links=”true” include_buttons=”false” post_types=”atelier” include_thumbnails=”true” thumbnail_size=”thumbnail” include_excerpt=”false”]

    Objectography Stories

    [user_favorites include_links=”true” include_buttons=”false” post_types=”objectography” include_thumbnails=”true” thumbnail_size=”thumbnail” include_excerpt=”false”]

    Editions

    [user_favorites include_links=”true” include_buttons=”false” post_types=”editions” include_thumbnails=”true” thumbnail_size=”thumbnail” include_excerpt=”false”]

    Thank you for your help.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter violetta

    (@violetta)

    Well apparently it doesn’t like to have multiple instances of the shortcode. I tried with only one instance, and got some favorites, but only posts, not my custom post types (yes, I have enabled them in settings).

    This shortcode only returns favorited posts.

    [user_favorites include_links=”true” include_buttons=”false” post_types=”post, atelier, objectography, editions” include_thumbnails=”true” thumbnail_size=”thumbnail” include_excerpt=”false”]

    Also, the documentation doesn’t say what to do with this, so I deleted. Could that be the problem?
    user_id=”” site_id=””
    Obviously, the site we’re on and the user who is logged in… So what to do with these?

    Thank you for your work and your help,

    Violet

    Thread Starter violetta

    (@violetta)

    Ok, since the developers don’t seem to be answering questions, I’ll post what I did.

    First point is that although their website is not linked from here, I did find the link from github. On their website is more information about shortcode parameters etc:

    https://favoriteposts.com/

    There i learned that user_id= defaults to current user, so no need to set that and site_id is in case you are using multisite and want to restrict.

    Regarding my lack of results, when listing multiple post types, this shortcode is nonstandard, in that necessary to separate with comma but WITHOUT space after the comma.

    Example (DOESN’t Work):
    [user_favorites post_types=”post, atelier, objectography”]

    DOES work:
    [user_favorites post_types=”post,atelier,objectography”]

    Finally, I discovered that it IS possible to have multiple shortcodes on the page. The “not working” problem was because when I copied and pasted the shortcode from the documentation page at www.remarpro.com the ” marks were pasted as curly marks, rather than straight ones. This disabled the shortcode. Wierdly, I’ve used a lot of shortcode and this is the first time I’ve had this problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘beautiful, but doesn’t work…’ is closed to new replies.