WordPress.org

Ready to get started?Download WordPress

Forums

Frontier Post
[resolved] Permalink in list for s2member levels (4 posts)

  1. blauweogen
    Member
    Posted 1 year ago #

    Hi, I am using s2member and I noticed that when a user in level1 or level2 views their list of posts the link to the article (not the edit link) is not a permalink and does not work.

    I am not sure why. I can't select Frontier Edit in the settings for s2member levels, so perhaps that is why?

    http://wordpress.org/plugins/frontier-post/

  2. finnj
    Member
    Plugin Author

    Posted 1 year ago #

    Strange, should not have anything to do with s2members

    I only have my iPad available until tomorrow, but I discovered that I have used post_permalink() instead of get_permalink(), post_permalink is for custom post types.

    If you want to try you can edit the below line in frontier_my_posts_widget.php in the include directory, replacing post_permalink with get_permalink

    <a href="<?php echo post_permalink($post->post_id);?>"><?php echo $post->post_title;?></a>

  3. finnj
    Member
    Plugin Author

    Posted 1 year ago #

    Maybe I misunderstood you, if it is the list of posts and not the widget, it could be a different story.

    What version are you using ?

    I have changed the behavior in the list a bit, so if posts are not published there is no link, but a preview link (right side) instead, the preview link was added in 1.5.7.

    The post_permalink is also in frontier_list.php in forms directory, you can follow the instructions above, if it is for published posts.

    Sorry, but it is not easy doing debugging with an iPad ....

  4. blauweogen
    Member
    Posted 1 year ago #

    Hmm, my brain must be fried, I just realized it is a draft and not published post. I removed the link. I will look at updating, but I will have a few modifications to reimplement. (still on 1.4.9)

    Thanks for a great plugin, and answers! Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.