Skip to:
Content
Pages
Categories
Search
Top
Bottom

get_permalink() returns false for every post listing


  • Harsh
    Participant

    @harshsoni_w3

    I am using get_permalink() function under a buddypress page “courses”, where i am fetching posts using this code

     $course = get_post($course_id);
       $course_link = get_permalink($course_id);

    I am using buddyboss theme and boss for learndash plugin to list courses assigned to members.

    Problem is i am not getting permalink in $course_link. $course_id is post id (integer), i have tried all the ways to get permalink but it always returns false. I need help to know why this is happening and what is the solution for this problem.

Viewing 2 replies - 1 through 2 (of 2 total)

  • shanebp
    Moderator

    @shanebp

    You should send these questions to BuddyBoss and / or LearnDash.


    Harsh
    Participant

    @harshsoni_w3

    Yeah, I did that and they resolved my problem. A plugin “WP RSS Aggregator – Feed to post” was causing issue. I updated plugin to 3.7.4 and it resolved my issue.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar