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

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -