Hi,
Is it possible to NOT display the date and author of a post JUST FOR ONE SUB-CATEGORY?
I want to have a series of product instructions translated into a local language. They could be static pages BUT I would like to have the equivalent of a ‘category page’ showing the choice available with appropriate thumbnails for the reader to choose from. If I understand it correctly category pages would update when new sets of instructions are added and could display different selections depending on most popular etc. It seems I do want posts not pages (is that right?), but I would rather not have date and author on them.
I am very new to this theme, and only have limited experience with WordPress, so I may be missing something obvious. On the other hand we do have a lot of programming experience so we may not be put off by a more complicated solution if needed.
Any suggestions?
Hi,
The theme doesn’t have an option to remove date and author on articles from a specific category and you will need custom modifications to achieve that. For example you could try in_category() function like this:
*for date(use the same function also on modules) in td_module.php file – http://screencast.com/t/saZTUxhGmwHq
*for author please edit td_module_single_base.php – http://screencast.com/t/XAOzPjVnC
Newspaper theme was designed for the default WordPress taxonomy and post types, it hasn’t been tested with custom post types or custom taxonomy if this is what you mean. Anyway you can customize theme’s post template you can find them in the root of the theme – http://screencast.com/t/MxzF2Erc and also the modules – http://screencast.com/t/AgAwwffZL
Also when you add a block to a page you can filter articles by a specific category(or multiple) and choose sort(latest) order so it will have the same functionality like category page – it will always show your new post if from that specific category – http://screencast.com/t/7ghBd5PzFx Another solution is to create a page, use a page template with latest articles(do not add any elements using Visual Composer) and just select a specific category for loop – http://screencast.com/t/9LP0wbYIdb4 so this page will use the loop like category page.
Hope this helps!
The edits using in_category() function worked great in removing date and author from the post itself.
Strangely it only removes the date from other places. See here –
https://dl.dropboxusercontent.com/u/4800576/Capture.PNG
It seems to use the get_date() function but not the get_author() function.
Any sugggestions as to where else I might look?
Thanks
Julie
Hi,
There are in fact 2 get_author() functions defined – one in td_module.php and one in td_module_single_base.php .
With both edited the modification seems to work as we need.
Many thanks. I’d love to get more involved in looking at the programming, its fascinating.
Julie
Hi,
Glad that it worked! Unfortunately it removes date also on modules as the date function is the same on modules and singles template. A solution to this would be to duplicate the date function and call it on single templates(so you can remove date only from posts) – http://screencast.com/t/1XVkm96MVX – http://screencast.com/t/06jQvs4s
Thanks!