[Support request] How To Insert Code Into Header In Custom PHP Page

Home Forums Support [Support request] How To Insert Code Into Header In Custom PHP Page

Home Forums Support How To Insert Code Into Header In Custom PHP Page

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #810597
    Tom
    Lead Developer
    Lead Developer

    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?

    #811604
    culpable

    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?

    #811670
    Tom
    Lead Developer
    Lead Developer

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

Viewing 3 posts - 16 through 18 (of 18 total)
  • You must be logged in to reply to this topic.