Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get page title
#1
Hi

Developing my first GetSimple site and enjoying it =)

On my frontpage I have three columns in which i get content via <?php getPageContent('pizzeria'); ?>, and from two other pages made in the admin area, and it's working fine, but when I'm trying tor use <?php get_page_slug('pizzeria'); ?> or <?php get_page_title('pizzeria'); ?> it only gets the title of the front page. I want to get the title that I made in admin panel for the pizzeria-page and the two others.

How do I do that?

Thanks in advance
Reply
#2
get_page_slug and get_page_title are for the current page only. Use:

Code:
<?php getPageField('pizzeria','title'); ?>

<?php getPageField('pizzeria','slug'); ?>
Reply
#3
Yes, that worked!

Thanks, Carlos
Reply




Users browsing this thread: 1 Guest(s)