• Hello,

    So far, I’m only using the amazing add-in for one series, and following the instructions here, I was able to add a link to the bottom of the TOC to the source code that accompanies the series. See the link for an example page.

    However, I realised that this would add that extra link to the TOC for every series I create, which is not what I want.

    Is it possible to customise the TOC for individual series?

    Thanks again, fantastic add-in!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • It probably could be done with some custom code but it’s not something that is built-in.

    If you’re familiar with WordPress filters and have some coding skills, you might be able to use the following filter (from the token_replace function) to accomplish what you want:

    apply_filters('post_orgseries_token_replace', $replace, $referral, $id, $p_id, $ser_id);
    

    A registered callback on that filter would receive:

    $replace The content being replaced.
    $referral Where the replacement is being triggered from (look at the function code to see what options these might be).
    $id – This is a dynamic value that might be post_id or series_id (better to use the following values)
    $p_id – the id of the post template being parsed.
    $ser_id – the id of the series template being parsed.

    This should help you (or a developer if you aren’t a developer) get started on implementing something like what you want.

    Alternatively, you could use any of the available template functions to build your own dynamic series toc in your theme and customize to your liking.

    Thread Starter Avrohom Yisroel Silver

    (@mryossu)

    Hello again. Thanks for the replies.

    I am a developer, but not a WordPress one, so am not sure where I would call these functions. Can you point me to any help on this?

    Thanks again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do we customise the TOC for a specific series?’ is closed to new replies.