code to display content?

Discussion in 'WordPress' started by Audiomad, Mar 14, 2012.

  1. #1
    What code is used to display the page content?
    I'm new to wordpress so am unfamiliar with the coding needed for this.

    I'm currently using the sample page to test this.
     
    Audiomad, Mar 14, 2012 IP
  2. gamezfever

    gamezfever Member

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    45
    #2
    <?php the_content(); ?>
     
    gamezfever, Mar 14, 2012 IP
  3. Audiomad

    Audiomad Peon

    Messages:
    1,028
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I've tried it but its still blank widgets work but the content its self is missing, do I need code in the functions.php or is their something I'm missing?
     
    Audiomad, Mar 15, 2012 IP
  4. gamezfever

    gamezfever Member

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    45
    #4
    Give me URL or place your page code Here
     
    gamezfever, Mar 15, 2012 IP
  5. Audiomad

    Audiomad Peon

    Messages:
    1,028
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I've attached the template files
     

    Attached Files:

    Audiomad, Mar 16, 2012 IP
  6. AlohaThemes.com

    AlohaThemes.com Active Member

    Messages:
    128
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    83
    #6
    You have to make sure you place that function within the WordPress loop.

    Here is an example of the loop taken from WP site. I have bolded the function:

    Hope that helps :) - Scott
     
    AlohaThemes.com, Mar 16, 2012 IP
  7. Audiomad

    Audiomad Peon

    Messages:
    1,028
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks I got it working I was missing this code :

    How do you get only certain entries to show from one category I want to have two columns with two sets of entries both from different categories, I'm also trying to get one to show 10 posts the other 5 any idea's?.

    Here is my current code :

     
    Audiomad, Mar 23, 2012 IP
  8. AlohaThemes.com

    AlohaThemes.com Active Member

    Messages:
    128
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    83
    #8
    Awesome! Glad you got it working.
    The code you missed is the first part of the WordPress loop and is essential for things to work (as you discovered).
     
    AlohaThemes.com, Mar 23, 2012 IP