Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Eli Antebi

    (@eliantebi)

    ?

    Thread Starter Eli Antebi

    (@eliantebi)

    The basic and “stupid” solution is just to make a loop on the posts table at the top of the single page, and run the increment like the archive, and once I got to the same post ID – stop the loop and capture the counter. heavy but works.

    The big picture is a bit complicated:

    I have Players CTP
    Each Player related to one Team taxonmy

    The Team archive page shows a list of playes in a given team (taxonomy), which the UI-design required to show its fake-ID, lets say “01/200”, “02/200″…. “200/200”. The 200 refers to the amount of players in this specific team (taxonomy).

    I also have client-side filters on that archive page, like “show only male”. That filters the list to let say 150 players, who should keep their fake-ID visible. Not big deal since it’s on the client side and I just show and hide irrelevant players.

    Now here’s the problem: On the single page, where I should show this player fake-ID, I should also show next/prev player link which should take into consideration the male/female filter 🙂

    I cant guess what is the next mache post and what would be it’s sort-index on that filtered taxonomy…That’s why I must have a DB key for the ordering, one that I query the database based on it… So I find the current one, and simply quesry the following.

    Thanks anyway!!

    Thread Starter Eli Antebi

    (@eliantebi)

    Thank you very much for your help; I have no idea how I missed that table, was looking for it all over the DB to understand how you’re storing the data.

    Unfortunatly this doesn’t solve my big problem, which is to get the sort-index, the one that I gets by a simple increment in the archive page as you mentioned – inside the Single page.

    My challange is to create a continuous ID for each post in each category. Your plugin is great and allow my to manually sort posts by category, but unfortunatly since you’re using uniqe id for the entire table and not a “soft-index” column that is uniqe/continuous for each category – that doesnt help me to get the real sort-index of the post…

Viewing 3 replies - 1 through 3 (of 3 total)