WordPress.org

Ready to get started?Download WordPress

Forums

My own PHP page and WordPress (7 posts)

  1. blixvod
    Member
    Posted 1 year ago #

    I'm looking for a way to create my own PHP page and use it with wordpress. How I can do that?

  2. BoUk
    Member
    Posted 1 year ago #

    Hi,

    What exactly do you mean by using your 'own PHP page'? What is that page going to be used for?

    Cheers

  3. blixvod
    Member
    Posted 1 year ago #

    Since alll Question&Answer modes are paid and I am good PHP coder, I want to create my own PHP page and code my own question&answer page.

  4. BoUk
    Member
    Posted 1 year ago #

    Hi,

    This would be probably best to implement as an own plugin. If you are familiar with PHP, it shouldn't take you a long time to familiarize yourself with the WP API and code the functionality yourself, with own code, but bonding it with WordPress in correct way.

    Little bit more ugly way of doing it, would be to create a WP page called for example 'Questions & Answers' with slug question-answers and create in your theme directory file called page-question-answers.php This is one of the possible ways, how to attach specific template to specific page. Then you can do whatever you want in page-questions-answers.php file to achieve functionality you are up to.

    Let me know if this helps.

    Cheers

  5. blixvod
    Member
    Posted 1 year ago #

    Thanks BoUk, since I have no idea how to use the WP API, I chose the second option (the :"ugly" way).
    I created the PHP file and put it into the theme directory but I have no idea how to access it.. \:

    [please stop the bumping - http://codex.wordpress.org/Forum_Welcome#No_Bumping ]

  6. BoUk
    Member
    Posted 1 year ago #

    Hi,

    Did you also created the WordPress page called Questions & Answers with the slug questions-answers? Did you name the php file page-question-answers.php?

    If so, anything you code/write into that php file will appear on the Questions & Answers page.

    Cheers

  7. BoUk
    Member
    Posted 1 year ago #

    Hi,

    I am not following. Did you read my answer above? Did you create the page as suggested? Did you create the file as suggested?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.