#wordpress 2022-08-19

2022-08-19 UTC
jacky, RasAlGhoul and jsbach joined the channel
#
jeremycherfas
!tell gwg Do you have any advice on displaying a page of all posts in a certain category with different look from the standard WP category page? I'm trying to use category to assemble a specific archive, but I don't want to affect the normal display of a category.
#
Loqi
Ok, I'll tell them that when I see them next
#
GWG
jeremycherfas: You can have a custom template for a category in a child theme
#
jeremycherfas
But if I create a template for category-{id}.php in my child. won't that also be applied to that category when Someone simply clicks on the category? I want to display that category in two different ways, I guess.
#
GWG
Well, how would they get to the alternative presentation?
#
GWG
You'd need a query variable and possibly a rewrite
#
jeremycherfas
A link in the menu to the page. Can I assign ANY template to a page?
#
GWG
jeremycherfas: A page template yes
#
GWG
Custom page template then
#
jeremycherfas
Then that will indeed do it. Thanks. Now to figure out paginate_links() in CP
#
GWG
It should be the same
#
jeremycherfas
Yup. Or might be the_posts_pagination() is easier.
#
jeremycherfas
Got the page looking more or less as I want, but cannot for the life of me work out pagination.
#
jeremycherfas
Tomorrow is another day.
#
GWG
jeremycherfas: You may have to customize that
jamietanna, [manton] and RasAlGhoul_ joined the channel
#
RasAlGhoul
Any advice on how to edit the rewrite rules/tags so that wp creates a random base32 post-id upon publishing a custom post type, such that the url is 'example.com/customcategory/ajd2'
#
RasAlGhoul
managed to get wp to create a base62 url but going to it results in 404
petermolnar joined the channel