WordPress.org

Support

Support » Plugins and Hacks » My own PHP page and WordPress

My own PHP page and WordPress

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

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

    Cheers

    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.

    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

    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 ]

    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

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘My own PHP page and WordPress’ is closed to new replies.
Skip to toolbar