Site logo

Archived topic

How To Insert Code Into Header In Custom PHP Page

17 replies · Started by culpable on February 8, 2019

Viewing posts 16–18 of 18

Using a page template would require you to use all the same functions. The difference is we'd be able to use is_page_template() in the code I mentioned above to target the page and remove the canonical URL.

As for pagination, I'm afraid I'm not sure how that would be handled in this scenario, unfortunately. Is it working with your current setup?

Ar yes – good point.

Yeah I'm not sure if you saw the code I sent through, but pagination is working with that code.

So I'm thinking maybe:
- Create a page template that uses the "subject" you type into the page to generate questions from the DB
- Create a page typing this "subject" somewhere into the page, creating the template?

Could definitely try that. I'm not familiar enough with your code to know for sure, unfortunately.

This archived topic is closed to new replies.