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

Add bw_theme_field___post_parent() to theme the post_parent as a link #238

Open
2 tasks
bobbingwide opened this issue Jan 20, 2025 · 0 comments
Open
2 tasks
Assignees

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Jan 20, 2025

On the officialcaravan.co.uk website I want to be able to display the post_parent as a link to the post's parent rather than just the value of the parent post ID.

Requirement

  • Display the post_parent field as link to the post's parent.
  • Except when the post_parent is 0, in which case display an empty string.

Proposed solution

  • Implement bw_theme_field__post_parent() in libs\bw_fields.php
  • Optionally add virtual field parent_ID for when the parent ID is needed instead of the link.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant