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 Items Shortcode #92

Closed
12 tasks done
krugazul opened this issue May 2, 2020 · 0 comments · Fixed by #95
Closed
12 tasks done

Add Items Shortcode #92

krugazul opened this issue May 2, 2020 · 0 comments · Fixed by #95
Assignees
Labels
[Type] Enhancement New feature or request

Comments

@krugazul
Copy link
Collaborator

krugazul commented May 2, 2020

Description

We have a few plans which will only display News Posts and Exercises, both willl link through to the "Single" templates. So you will need to make sure there is a single exercise template, which displays the WP block content, like a normal static page.

Shortcode Arguments

  • include = this should take 1 ID or many IDs,
  • term = the term slug of the taxonomy you want to call.
  • taxonomy = the taxonomy slug of want to call.
  • columns
  • post_type
  • orderby
  • order
  • description = full,excerpt, none
  • link = item, none, modal
  • link_class = e.g btn btn-primary
  • image_size = lsx-thumbnail-square

Shortcode TODO

  • Please change the shortcode name to lsx_health_plan_items

Designs

The following are designs why are just the "My Plan" page, using the exercises shortcode, to call through the attached items. The whole page will be built with blocks,

Example 1

This will be built using WP Blocks.

  • Part 1 is a separate title block
  • The first row of 3 columns is the exercise shortcode, set to 3 columns, calling only workouts.
  • The second row is the the post grid shortcode, but set to call posts in 2 columns.

Screenshot 2020-05-02 at 16 59 07

@krugazul krugazul added the [Type] Enhancement New feature or request label May 2, 2020
@krugazul krugazul added this to the LSX Health Plan - 1.4.0 milestone May 2, 2020
@krugazul krugazul changed the title Workout Shortcode (Issue - Incomplete Description) Exercise Shortcode May 4, 2020
@krugazul krugazul changed the title Exercise Shortcode LSX HP Items Shortcode May 8, 2020
@viscosho viscosho mentioned this issue May 11, 2020
6 tasks
@viscosho viscosho linked a pull request May 11, 2020 that will close this issue
6 tasks
@ashleyshaw ashleyshaw changed the title LSX HP Items Shortcode Add Items Shortcode Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants