Closed eduardoarandah closed 1 year ago
Given a CPT "Pets"
Instead of "Archives: Pets", show "Pets"
git clone git@github.com:roots/sage.git && cd sage composer require roots/acorn composer install yarn && yarn build wp theme activate sage
wp plugin install --activate custom-post-type-ui
example:
http://wp.localhost/pet/
Take a look at using the get_the_archive_title filter instead
get_the_archive_title
Given a CPT "Pets"
Instead of "Archives: Pets", show "Pets"
How to test
the usual install
add ui for post types
wp plugin install --activate custom-post-type-ui
add pet cpt
add a dog and a cat
navigate to archive
example:
http://wp.localhost/pet/