Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to link to a post from a symfony page? #133

Open
nicodemuz opened this issue Jun 2, 2017 · 1 comment
Open

How to link to a post from a symfony page? #133

nicodemuz opened this issue Jun 2, 2017 · 1 comment

Comments

@nicodemuz
Copy link

I'm trying to link to a post from a Symfony page. I have the Post entity. How do I get the link to the post itself?

@wiejakp
Copy link

wiejakp commented Nov 6, 2017

Assuming you want to do that in your twig template... You can use PostExtension and then inside of twig like so:

{{ wp_get_permalink(post_object) }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants