• Hi all,

    I have a list of publications and I would like to have them numbered in reverse order. I do know how to program and I know a bit of PHP. However, this is the first time I’ve tried editing any WordPress plugin.

    I’m not sure if any template has this already or if this is even feasible. Some advice would be appreciated.

    Where I started from with my search is templates/tp_template_2021.php ? In particularly, the get_entry () function seems to be doing string concatenation. So, I guess what I need to do is add a number to the line "$s = '<div class="tp_publication' . $class . '">';?

    This seems to be called by the get_single function in core/publications/templates.php. I noticed there is a $pub_count variable that is initialised to 0. I could subtract it from the total number of publications (which is available at the top, next to the word “entries”) to get a decreasing number…

    Anyway, that is my current idea at the moment. But given there is a number being passed into the function, I’m wondering if there is an even easier way. Or is what I’m considering even impossible and I shouldn’t bother trying.

    Thank you in advance!

    Ray

    The page I need help with: [log in to see the link]

  • The topic ‘Numbering publications in reverse’ is closed to new replies.