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

Default Archive Page #4

Open
PeterBooker opened this issue Dec 9, 2013 · 0 comments
Open

Default Archive Page #4

PeterBooker opened this issue Dec 9, 2013 · 0 comments

Comments

@PeterBooker
Copy link
Member

Currently, the plugin displays the Testimonials using the archive page on the users website. This would normally be using the archive.php template file, which would not do a job job of displaying the Testimonials. So we use the template_redirect hook to check for an archive-kbte_testimonials.php in the child and parent themes, if none is found it then uses one inside the plugin.

The problem with this is that I cannot predict all formats of HTML and how the CSS is/should be applied to them. This occasionally results in a badly formatted display (for example, the twentythirteen theme).

I would like to attempt a different strategy, which involves checking for a custom archive-kbte_testimonials.php file in the child/parent theme, and if none are found using the page.php from the theme. This would mean I have to parse the data returned from the query, create the page content html output, and then pass this as a single post to the page.php template.

If possible, this should ensure that the default display of Testimonials always fits in with the users theme.

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

1 participant