Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to include index page for Topics, Books, etc #22

Closed
thetallweeks opened this issue Feb 12, 2018 · 1 comment
Closed

Question: How to include index page for Topics, Books, etc #22

thetallweeks opened this issue Feb 12, 2018 · 1 comment

Comments

@thetallweeks
Copy link

Hi, I've taken the Restful theme and am modifying it so that I can support topics.

I added to the "theme support"

add_theme_support( 'ctc-sermons', array(
    'taxonomies' => array(
      'ctc_sermon_book',
      'ctc_sermon_series',
      'ctc_sermon_speaker',
      'ctc_sermon_topic' // added
    ),
    'fields'     => array(
      '_ctc_sermon_video',
      '_ctc_sermon_audio',
      '_ctc_sermon_pdf'
    )
  ) );

And added a template called taxonomy-ctc_sermon_topic.php

But I can't seem to figure out how to set up a home page for topics. I want to show a list of all the topics like https://demos.churchthemes.com/exodus/sermon-archive/sermon-topics/

I notice that the non-post types don't have an "All" option in the menus like sermons has. So I'm not sure if this is the issue.

My current setup has /archives/sermon-topic/contentment as a valid url and uses the taxonomy-ctc_sermon_topic.php template. But if I try to go to /archives/sermon-topic it is not found.

I've tried creating template files called taxonomy-sermon-topic.php, archive-ctc_sermon_topic.php, taxonomy-sermon-topic.php and nothing seems to work.

Any help would be greatly appreciated.

@stevengliebe
Copy link
Member

Hello,

Unfortunately I'm not able to spend time assisting with theme development. The plugin registers post types, taxonomies and custom fields in the standard WordPress manner so I recommend consulting the WordPress theme development docs for how you can show this type of content in your child theme.

It may be easier to use a theme that does support what you need, such as the Exodus theme you mentioned as an example. You could also ask the maker of Restful if they are willing to add this feature to their theme or to custom develop it for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants