Forums

propa noob in need of advice (12 posts)

  1. theboyj
    Member
    Posted 4 years ago #

    im a brand spankin new user andcant seem to acheive what i wanna do:-

    id like too index say for example 50 seperate pages from 1 link on the main page,how please just tell me how lol

  2. hakre
    Member
    Posted 4 years ago #

    rofl

  3. theboyj
    Member
    Posted 4 years ago #

    thanks for ya support lol

  4. hakre
    Member
    Posted 4 years ago #

    well no problem, so what was at least so exactly lol you wanted to get support for? can you detail-lol it bit? so rofl lmao

  5. theboyj
    Member
    Posted 4 years ago #

    under 'pages' on the main page id like a link saying for example 'houses for sale' when you click this link it takes you too another page with 50 links,each link would link too a page with details of a property,each of the 50 links on the previous page would each have a differant property.

    not that my site has anything too do with property sales,i just wanted too feel like a property tycoon lol

  6. Mark
    Member
    Posted 4 years ago #

    if you want to do this in pages, then you can do the following:

    setup all your pages & sub pages, and then include this in your page.php template after the main content loop:

    <? $pageChildren = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = ".$post->ID." AND post_type = 'page' ORDER BY menu_order", 'OBJECT'); ?>
    <? if ( $pageChildren ) : foreach ( $pageChildren as $pageChild ) : setup_postdata( $pageChild ); ?>

    LOOP STUFF HERE

    <? endforeach; endif; ?>

    but this will be really cumbersome to do in pages.. i'd suggest creating categories and using posts to list those 50 entries, not pages..

  7. theboyj
    Member
    Posted 4 years ago #

    many thanks llama

  8. theboyj
    Member
    Posted 4 years ago #

    is it possible not to displays recent posts on the main page??

  9. jelski
    Member
    Posted 4 years ago #

    how are we doing with this?

  10. moshu
    Member
    Posted 4 years ago #

    How are we doing what?

  11. hakre
    Member
    Posted 4 years ago #

    You do with this like you do with that. But that does only work if this is like that. If this is not like that then you need to do something different from that to achieve this.

  12. hakre
    Member
    Posted 4 years ago #

    is it possible not to displays recent posts on the main page?? yes, it is possible to not do so. checkout the static frontpage option in the blog administration.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags