Thanks for the improved solution, it was very neat and tidy, and seems to work well, except for one thing:
If no date is displayed, no other content after the code above is displayed either. There is a bunch of php code writing out other things after, and they are only being displayed in the articles where the dates are being displayed.
Also, I replaced catid with alias instead. Is that considered bad practice?
If I by accident delete the article(s) or categories with said id's, they will be designated new ones after I re-create them. This is not a huge issue, but if I instead could refer to their respective alias, I wouldn't need to alter the php code in such a case.
If no date is displayed, no other content after the code above is displayed either. There is a bunch of php code writing out other things after, and they are only being displayed in the articles where the dates are being displayed.
Also, I replaced catid with alias instead. Is that considered bad practice?
If I by accident delete the article(s) or categories with said id's, they will be designated new ones after I re-create them. This is not a huge issue, but if I instead could refer to their respective alias, I wouldn't need to alter the php code in such a case.
Statistics: Posted by SocketPup — Sun Apr 07, 2024 11:48 am