• Resolved bluegum

    (@bluegum)


    My client has a one page website, so I have created this code (this code only represents one section for the pages):

    $latestedition_page_post_id = 40;
     $latestedition_page_post = get_post( $latestedition_page_post_id, ARRAY_A );
    $content_latestedition = $latestedition_page_post['post_content'];
    echo $content_latestedition;

    Please tell me if I have about five pages, which I have had to create in WordPress itself, how can I link to those pages to be displayed in page.php? Thanks in advance.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Are you saying that you want to link to pages? Why not use the wp list pages function.

    Thread Starter bluegum

    (@bluegum)

    No, what I am trying to say is that I have a series of pages for the sections within page.php, and am wanting to find the link to the page.php itself. This website is only a one page website, therefore the pages which are created within WordPress are for the sections in the one page site. The link for page.php should go into index.php (which is acting as a intro page for other websites which are yet to come, as well as this one page site). Please help me with this.

    I think you are a little confused about how WordPress works. Pasge.php is a template – it’s not a page you can actually visit. It’s used to power your pages.

    If you want page.php to power your home page you should create a page and make sure it uses your default page template. Then go to your admin/reading settings area and set your home page to be static instead of blog posts and make sure it links to that page.

    Thread Starter bluegum

    (@bluegum)

    I think it might be best to post the website address of the one page website without being in WordPress, so people can get an idea of what I am talking about. Here is the site address: countrylivingmagazine.com.au. Please tell me how I can create those sections (About, Advertising, Our Advertisers, Subscribe, Contact), and link to the one page website in WordPress?

    the link doesn’t work 🙂

    Thread Starter bluegum

    (@bluegum)

    How come I just received an email saying that the link I posted here doesn’t work, and that reply doesn’t appear here? Anyway I just tested the link after clearing my browser’s cache and it worked for me.

    Unfortunately, I can’t see the site. It’s down for me (Colombia).

    Oops! Google Chrome could not find http://www.countrylivingmagazine.com.au
    Suggestions:
    Access a cached copy of http://www.­countrylivingmag­azine.­com.­au
    Go to http://www.­countrylivingmag­izine.­com
    Search on Google:

    Thread Starter bluegum

    (@bluegum)

    Okay I have created a jpg file which contains the website, so please visit this to see the jpg: http://imageshack.us/photo/my-images/864/site1o.jpg/.

    Thread Starter bluegum

    (@bluegum)

    The subscribe button should go to a pdf.

    Thanks. I can see the screenshot ok. The theme looks good.

    I’m still not 100% sure what you mean. Do you want a one page design i.e. when a visitor clicks on a link they will scroll down to the next section. Is that what you mean?

    Thread Starter bluegum

    (@bluegum)

    Do you want a one page design i.e. when a visitor clicks on a link they will scroll down to the next section. Is that what you mean?

    Yes, that is exactly what I meant.

    Thread Starter bluegum

    (@bluegum)

    Please someone please help me I am trying to meet a deadline here.

    Thread Starter bluegum

    (@bluegum)

    I think maybe if I can create the code (is one of many) which is below into a shortcode I might be right. I can just place the shortcode into a page to be created in WordPress via the Pages section, but after adjusting the code below and placing that into a function.php file.

    $latestedition_page_post_id = 40;
     $latestedition_page_post = get_post( $latestedition_page_post_id, ARRAY_A );
    $content_latestedition = $latestedition_page_post['post_content'];
    echo $content_latestedition;

    You can do 5 loops within your index.php template. Instead of just showing blog posts you could specify 5 pages you want to display using wp_query. Then just link to each section using identifiers.

    Thread Starter bluegum

    (@bluegum)

    Kevin Muldoon wrote: You can do 5 loops within your index.php template. Instead of just showing blog posts you could specify 5 pages you want to display using wp_query. Then just link to each section using identifiers.

    Thanks that sounds good, but as index.php should act as an intro page with a series of logos going off to different websites, how would it work for page.php? Or could I place the code for the logos links (to be edited by my client), along with the code you mentioned for the index.php?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Showing multiple pages in the page.php, finding the link’ is closed to new replies.