javascript - How to hide and unhide div section in wordpress using page builder? -
currently , have page display testimonies year 2012 until 2016. create hyperlink user can view testimony year. example, graduate of 2016 | 2014 | 2013 | 2012
when user click 2016, other year's testimonies hidden , vice versa. link http://caa.org.my/demo/testimonial-2/
i tried add javascript block whole year seem not working @ page builder.
by way, don't use jquery pure javascript.
anyone can help?
regards, steve
why don't create taxonomy "year" testimonial post type? assign every post type specific year. can access slug of taxonomy , value of term ( i.e. year/2016, or testimonials_year/2016 ) . adjust template it. see: https://developer.wordpress.org/themes/basics/template-hierarchy/ template hierarchy.
Comments
Post a Comment