• Hey guys.

    I was working locally on a wordpress theme. I just uploaded it to my webspace and some of my themes are slightly screwed up. What I’m trying to sort out right now is my single post template. I haven’t changed anything from when I was working locally and it was performing fine. Now, on my webspace the single.php template isn’t working. When I try to view a single post, the header and footer are included but the posts are “Not Found”.. even when I am in the dashboard and click view post… no post is displayed.

    I didn’t change my loops at all or anything… anyone have any hunches as to why this would have broken?

    thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Sounds like your single.php template file has some kind of syntax error or bug. If you have access to your server’s error log, that might give you some clues as to the exact problem.

    Without seeing your template file(s), we won’t be able to provide much in the way of specific help.

    Thread Starter jacksonhoose

    (@jacksonhoose)

    i changed my URL strucutre to %pagename%… could that have any impact?

    I tried uploading the old Twenty Ten Single-Loop and Single.php and that didn’t effect anything

    Thread Starter jacksonhoose

    (@jacksonhoose)

    sure enough…. it seems like if i am using the default ugly permalinks my single posts work… what do i have to do to get single to work with pretty perma links? .. or more specifically a %pagename% structure?

    See the Codex

    First: you need to use %postname%, not %pagename%

    Second, as per the Codex: Starting Permalinks with %postname% is strongly not recommended for performance reasons

    There is no %pagename% permalink tag. Perhaps you need to review Using_Permalinks?

    Thread Starter jacksonhoose

    (@jacksonhoose)

    hmm…

    %pagename% was working for me. I actually have it working now by changing the permalink structure to %pagename%/%postname%

    i’ll check the permalinks info at the codex though.

    thanks ya’ll

    %pagename% is the absolute worst possible permalink structure, with respect to performance. You will force mod_rewrite into verbose mode on every page hit.

    Thread Starter jacksonhoose

    (@jacksonhoose)

    yikes!!!! well im at %postname% now.

    blessings

    Be sure to read the linked Codex page.

    %postname% is the second-worst possible permalink structure.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Single Posts Not Displaying’ is closed to new replies.