Jump to content

New Fields Don't Appear In Template


tc_855
 Share

Recommended Posts

I just started with PW and I've gotten the hang of things quite easily but whenever I make a new field it doesn't not appear on the user side of the template. I can manage the field content in the admin section but nothing appears but the title and body on the user side. 

Is there a permissions/roles function that I have to change?

Is there something in the PHP template files I need to change?

Thanks.

Link to comment
Share on other sites

Thanks ... right now my template looks like this

<?php 

/**
 * Page template
 *
 */

include("./head.inc"); 

echo $page->body;

include("./foot.inc"); 

But I have three custom fields.

I will look in to the documentation you suggested

Link to comment
Share on other sites

It is as simple as this:

<?php
/**
* Page template
*
*/
include("./head.inc");

echo $page->body;

echo $page->your_field_name;

echo $page->another_field_name;

echo $page->third_field_name;

include("./foot.inc");
 

But do finish to those tutorials. You easily get a grasp of all the possibilities.

  • Like 2
Link to comment
Share on other sites

After some research and testing I have come to the conclusion that my issue is not a template issue but rather the fact that the data I am entering doesn't store itself in the database. Every time I refresh the page to edit the data my fields are empty again. Any clue as to why that is?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...