• Hi

    Please look at this page, work in progress:

    https://rowby.com/wordpress/

    I have made modifications to the theme (Stripes) and somehow disabled the ability to click on a post and see the post by itself.

    I know it must be something I did on the main page, because when I switch to the default wp theme I don’t have the problem. I also don’t have the problem when I switch to the unaltered Stripes theme.

    Some of the changes I made was eliminating the comments links etc, since I don’t want comments. But even when I put back the comments etc links from a virgin copy of Stripes, I could not get the link to the full articles to work.

    Any suggestions?

    Thanks

    Rowby Goren

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter rowby

    (@rowby)

    Note I may have overwritten my .htacces file (while working on a plugin with a blank .htaccess to my wpress root directory.

    If that is the case would that cause this — even though the default theme and the untouched “Stripes” theme works perfectly without that problem.

    Are these links I’m talking about (i.e. https://rowby.com/wordpress/?p=12″ called “permalinks”?\

    ((Note the very same link such as above work fine in the wp default theme and work fine in the untouched Stripes theme. (It’s only when I switch back to my modified Stripes theme that they don’t work.))

    No, you probably have edited index.php and accidentally removed the if (is_single()) { blah-blah-blah.

    You can create your own single.php file or return the code necessary to the index file.

    Edit: Ignore the first part of this post, I was busy chewing. That is for “extra stuff”. More than likely you have edited something you shouldn’t have as other themes work. Probably time to start “fresh” or start backing out of your edits until you find the error.

    Look at the address bar in each case – you’re actually going to the post pages when you click on the post titles, but the post page in each case is exactly the same as the index. Is it possible that you’ve overwritten the contents of single.php (the post template) with the contents of index.php (main template)? That would certainly explain things.

    Thread Starter rowby

    (@rowby)

    Thanks for the quick reply.

    Assuming the problem is with the single.php file….

    Can I just copy my single.php file from the wordpress zip file into the appropriate directory?

    If so, what is the appropriate directory? I only see a copy of it in my themes\default directory.

    Save your edited single.php and copy any other into the theme directory with which you are experiencing the error (Rowby). Then you can compare the new one with your old single.php and perhaps find your mistake (assuming this is where it is).

    Thread Starter rowby

    (@rowby)

    Hi I uploaded single.php directly from the wp zip file to my local Rowby directory and uploaded it to the same folder on the server. That didn’t solve the issue.

    I found that <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
    was missing and I added that — and uploaded to the server — but still the same results (which suprised me).

    I even fired up Opera to make sure I wasn’t looking at a cached version of the site.

    You still think my apparently overwriting of the .htaccess file with a blank .htaccess file would not have caused this?

    https://rowby.com/wordpress/

    Thanks

    Thread Starter rowby

    (@rowby)

    I will put up the generic theme and you will see that it works fine with that theme…. Hold on….

    Thread Starter rowby

    (@rowby)

    Me thinks I will rebuild the page. Give me 30 min.

    Rowby

    I’m not past ruling out anything, but since your other themes work it is unlikely to be an issue with .htaccess

    Do a hard refresh of your page as it appears the uploaded single.php is working.

    Edit: I take that back, it looks like you just changed themes.

    Thread Starter rowby

    (@rowby)

    I’ve rebuilt the page and the permalinks are working now.

    The page is a mess at the moment, but that’ s just some stylesheet etc fixes.

    Thanks, Beel, etc, for guiding me through this hiccup!

    Rowby

    https://www.rowby.com/wordpress/

    Just to be clear, you aren’t actually using permalinks – they would be along the lines of:
    yoursite/blog/date/post-title instead of the ?p=X

    So did you track down exactly what the error was so others might benefit in the future?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Link to Post’s individual page won’t work’ is closed to new replies.