• Hi,

    I few months ago, I did a simple php form.
    Today, I can see my subpage in wordpress but the wysiwyg(code mode) it’s empty (although the preview shows the fullform).

    So I assumed that I created a template for it, but it’s set to the default.

    So I open my php file, I find the form (named page_symptom-quiz.php) but there isn’t the template tags at the top of the page.

    So how did I “linked” this page to wp…I don’t remember

    Please let me know if I am not clear.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter kaderm

    (@kaderm)

    Maybe I wasn’t clear enough
    so here some pictures, I would really like to understand this.

    First here is my link :
    Food Intolerance symptom quiz

    Here is the pictures of my page in wp admin

    And the actual page

    So, how does WP knows to show the info ?

    Thank you

    Thread Starter kaderm

    (@kaderm)

    bump..

    One way that it could have happened, is if you have a folder called food-intolerance-symptom-quiz, and you have the php file in there.

    If that is the case, when you created the page with the same title, the url points to that directory.

    I have done this on my site, on purpose, for a specific directory.

    Edit: I see now that you mention having an individual file, but it may have happened that way all the same, the page calling the same url.

    Thread Starter kaderm

    (@kaderm)

    Hi Buddha,

    The name of my php file (which is in the root of my theme, and is called : page_symptoms-test-en.php) has this bit of code :

    <form name="symptoms" method="post" action="<?php echo get_settings('home'); ?>/symptoms/food-intolerance-symptoms-quiz/en/">

    Is that what you meant ?
    As you can see in the pictures, the url in the form action is the same as my slug in wp write page.

    Yes, that’s what I meant. If you are calling the same url with the slug, creating that page, just created the permalink, but then the browser goes straight to that file.

    I’d think it went that way. I did it by creating a page with the same name of a directory, where I have another php install different than WP, and it worked.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page content pulled into wordpress’ is closed to new replies.