Saturday, August 13, 2022
HomeWordPress Developmentfilters - Is feasible register two archive pages for single customized put...

filters – Is feasible register two archive pages for single customized put up sort?


I’ve a customized put up sort registered with register_post_type( 'programs', $args ); (like documentation), and I exploit template archive-courses.php for web page www.instance.com/programs. I am utilizing this archive to point out default view, with some question string filters, with pagination, and default structure.

Now I want one other web page with identical funcionalities of file archive-courses.php has, like paginations, question string and extra.

I want use two URLs simultaneosly like www.instance.com/programs and www.instance.com/calendar. This second web page want use identical registered programs of put up sort /programs, however with totally different archive web page. The thought is use differents filters for this web page with totally different structure, however with all functionalities which might be avaliable for archives templates.

The query:

  1. Is feasible register two archive template for identical customized put up sort, however with totally different URLs?
  2. If not (1), is feasible publish one default web page and trough some add_filter/add_action load functionalities o archive template (like pagination, question strings)?
  3. If not for all, has some suggestion to do that?

Thanks.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments