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

Create a list view #3

Open
wpscholar opened this issue Jun 4, 2015 · 2 comments
Open

Create a list view #3

wpscholar opened this issue Jun 4, 2015 · 2 comments
Assignees
Milestone

Comments

@wpscholar
Copy link
Member

@mgratch Has created an initial implementation here: https://github.com/mgratch/caec/blob/master/themes/college-application-essay-coach/inc/extras.php#L100

This could serve as a starting point for building out a more robust feature.

Areas of concern:

  • What happens when a user wants to sync a map view and list view? Ideally the list view could easily feed off of the global query, but what if the query it should use isn't global?
  • Are there use cases where pagination within a list view would make sense?
  • Are there contexts where a default list view would make sense?
  • What is the smartest way to setup the shortcode attributes? It seems that matching the options of the map view would be a requirement so that the list view can be setup to match what is shown on a map.
  • What is the best name for the shortcode?
@ruthmaude
Copy link

Thanks this was a help.

I changed it for my purposes to a list. Changed the div to a ul and I linked the name.

$content .= '<li class="placeName"><a href="' . get_permalink() . '" rel="bookmark">' . get_the_title() . '</a></li>';

Shortcode I used is [places-list]

@wpscholar
Copy link
Member Author

@wpscholar wpscholar self-assigned this Jun 11, 2020
@wpscholar wpscholar added this to the 1.4 milestone Jul 11, 2022
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

2 participants