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

Support table display for bw_related shortcode #6

Open
bobbingwide opened this issue Dec 6, 2015 · 2 comments
Open

Support table display for bw_related shortcode #6

bobbingwide opened this issue Dec 6, 2015 · 2 comments
Assignees
Labels
enhancement Needs documentation Write documentation before closing

Comments

@bobbingwide
Copy link
Owner

the [bw_related] shortcode enables you to list content that is related to something. It supports meta_key=. where the . is a placeholder. This enables you to list things in the future or in the past. The output can be formatted either as a list or using the logic for bw_pages. It would also be nice if the content could be formatted using bw_table logic,

@bobbingwide bobbingwide self-assigned this Feb 22, 2019
@bobbingwide
Copy link
Owner Author

bobbingwide commented Feb 22, 2019

Well, it's been a long time coming but I finally added the required logic, overriding the format= parameter, used by [bw_pages] to accept format=T meaning display using bw_table().

Examples, from anchorgolf.com, for a Player

To display the player's results, displaying Event, Result type and Details

[bw_related post_type=result meta_key=_player meta_value=. 
fields=_event,result_type,_details format=T
order=desc orderby=date 
posts_per_page=10]

To display event attendance ( past and planned)

[bw_related post_type=competitor meta_key=_player meta_value=.
fields=_event,playing_status format=T
orderby=date order=desc 
posts_per_page=10 ]

@bobbingwide
Copy link
Owner Author

This needs documenting. Also, the [bw_related] example in shortcode help needs some explanation.

@bobbingwide bobbingwide added the Needs documentation Write documentation before closing label Dec 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Needs documentation Write documentation before closing
Projects
None yet
Development

No branches or pull requests

1 participant