How to get Post Link and Post Subject?

Find help with FlatPress plugins, report a plugin bug, request or present new plugins.
Post Reply
marustiweb
Posts: 3
Joined: Thu May 07, 2020 9:30 am

How to get Post Link and Post Subject?

Post by marustiweb » Thu May 14, 2020 7:34 am

I'm trying to get into FP plugins but i'm a bit stuck right now.
1) Post link
I tried get_permalink($id) but what i'm getting back is

Code: Select all

http://localhost/flatpress-1.1/20///welcome-to-flatpress/
(with prettyurl on) or

Code: Select all

http://localhost/flatpress-1.1/?x=entry:
(prettyurl off). I'm clearly missing something but i right now i have no idea what.
2) post subject
Couldnt find anything so far

Can someone pls. point me into the correct direction? Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests