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

Post block "forgets" the link url to the post #5

Closed
Theremingenieur opened this issue May 14, 2018 · 2 comments
Closed

Post block "forgets" the link url to the post #5

Theremingenieur opened this issue May 14, 2018 · 2 comments

Comments

@Theremingenieur
Copy link

Title says it all...

In the editor (admin), the single post block renders well and the url to the post is there.

In the front view, the block renders still nice, but the href tag behind is empty.

@Theremingenieur
Copy link
Author

Theremingenieur commented May 15, 2018

Found a fix: In classes/Blocks/Post.php a line is missing.
add
$link = get_the_permalink;
around line 77 before

// Get template
			include Consts::get_path() . 'public/templates/post.php';

@maximebj
Copy link
Owner

I've forgotten to update this when I switched to a standard WP Query + loop.

I've updated public/templates/post.php and replaced echo $link bt the_permalink();

I'll ship it in the next release, meanwhile you can use your trick :)

Thanks!

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