Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WordPress page content not appearing

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #31534
    Arvid
    Member

    Hi! I am having a problem with a WordPress theme I’m trying to create. I want to homepage to get content from a page in WordPress, and I’ve set the frontpage to a static page, but when I load the page only the page title appears. I’ve also added different pages but when I click view I get a 404 error. I’d apreciate any help!

    Arvid

    #62464
    Arvid
    Member

    Damn, misclicked the category, should be under PHP.

    #62465
    jsweazy
    Member

    It would help if you posted your code

    #62466
    Arvid
    Member

    Alright, this is the rather messy code:








    The title is here


    Text



    #62442
    jsweazy
    Member

    First off it doesnt seem like you ended the div.post or div.content.

    But i believe your problem is you dont have the wordpress loop in there

    what you need to do is this:







    The title is here


    Text




    // WordPress loop Start






    //Loop end if there is content
    //If no content display Whats bellow


    Sorry, no posts matched your criteria.







    #62383
    Arvid
    Member

    Thanks a lot, it seems to work! Also thanks for the commenting haha.

    #61840
    Arvid
    Member

    Edited, solved…

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.