+ Reply to Thread
Results 1 to 2 of 2

Thread: php help

  1. #1
    Taha117 is offline x10Hosting Member Taha117 is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    8

    Post php help

    This is the php code i am using in my wordpress header to display pages however i wish it to never display page child. Please post the solution below

    <?php
    $pages = CMSTheme_GetPages(); if ($pages) { foreach ($pages as $page) { $page_id = $page->ID; $page_title = $page->post_title; $page_name = $page->post_name;

  2. #2
    Nathan H is offline x10 Elder Nathan H is an unknown quantity at this point
    Join Date
    Apr 2006
    Posts
    562

    Re: php help

    it is unlikely people will give you a direct code solution, that would be cheating and ruin the fun.
    You could try using an if statement inside your for-each statement to filter whether a page is displayed by checking whether it is a page child or not
    Nathan H Formerly UnFoundBug



    http://www.theadmin.co.uk - Yes i know the colours don't go, I'm working on it.

    VPS Admin | x10-commandments

    So thats where it went! I thought i was losing my mind.

+ Reply to Thread

Similar Threads

  1. Replies: 3
    Last Post: 03-10-2008, 12:22 PM
  2. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  3. Sigo con problemas con phpbb2
    By reciecho in forum Soporte
    Replies: 7
    Last Post: 10-20-2007, 06:28 PM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers