Can anyone help me with a code to show a chapter list button?
I was using the Psyplay theme, but in the video panel when visualizing the chapters of any series, it shows the "previous" and "next" chapter buttons, but does not show a "chapter list" button.
I want to add a "Chapter List" button, which is heading towards the page that contains the chapters.
I am not a programmer, so I was testing chatgpt, but he could only give me this good code, which does not work completely well, that if it shows the button, but it takes me to the page where all the series are, it does not take me to the page where are the chapters of the respective series.
<?php if (is_single() && is_post_type('episodes')) { ?>
<a href="<?php echo home_url('/series/'); ?>" class="btn bp-btn-series" style="color: #fff000;">
<i class="fa fa-list"></i> <span><?php _e('View All Episodes', 'psythemes'); ?></span>
</a>
<?php } ?>
The url are of this type: https://urlexample/series/ahsoka/
and the code only directs me here https://urlexample/series/
Sorry, it must be something simple, but I do not know how to do it.
I was using the Psyplay theme, but in the video panel when visualizing the chapters of any series, it shows the "previous" and "next" chapter buttons, but does not show a "chapter list" button.
I want to add a "Chapter List" button, which is heading towards the page that contains the chapters.
I am not a programmer, so I was testing chatgpt, but he could only give me this good code, which does not work completely well, that if it shows the button, but it takes me to the page where all the series are, it does not take me to the page where are the chapters of the respective series.
<?php if (is_single() && is_post_type('episodes')) { ?>
<a href="<?php echo home_url('/series/'); ?>" class="btn bp-btn-series" style="color: #fff000;">
<i class="fa fa-list"></i> <span><?php _e('View All Episodes', 'psythemes'); ?></span>
</a>
<?php } ?>
The url are of this type: https://urlexample/series/ahsoka/
and the code only directs me here https://urlexample/series/
Sorry, it must be something simple, but I do not know how to do it.