Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter ljkerley

    (@ljkerley)

    Hey Alchymyth,
    That worked quickly and easily. Thanks so much!

    Thread Starter ljkerley

    (@ljkerley)

    Ok, so I found my own solution to this problem.
    My blog has a 3-column format, e.g. #leftSideBar, #postContent, (right)#sidebar. I originally had the navigational functions, e.g. posts by category, by archive date, etc. in the PHP file of leftSideBar, which was a custom template. As soon as I swappped the content of the sidebars so that the navigational functions were in the standard PHP template ‘sidebar.php’ everything worked.

    Thread Starter ljkerley

    (@ljkerley)

    Ok, so I found my own solution to this problem.
    My blog has a 3-column format, e.g. #leftSideBar, #postContent, (right)#sidebar. I originally had the navigational functions, e.g. posts by category, by archive date, etc. in the PHP file of leftSideBar, which was a custom template. As soon as I swappped the content of the sidebars so that the navigational functions were in the standard PHP template ‘sidebar.php’ everything worked.

    Thread Starter ljkerley

    (@ljkerley)

    Esmi, it sounds like you know what the problem may be. Can you elaborate, please?
    Also, I checked out pastebin documentation, but when I clicked on the link from the help text (to try to do as asked), I got a 500 server error.

    Thread Starter ljkerley

    (@ljkerley)

    My assumption is that the ‘Recent Articles’ calls my single.php as opposed to the archive.php or? So even if there were something wrong with my archive.php, the “Recent Articles” navigation would in that case still work, or?
    Looking at the archive.php the frustrating part is that it is for the most part copied from the default. There are minor changes to call my templates, but that is it.
    Here the code: Do you see any likely suspects?

    [Code moderated as per the Forum Rules. Please use a pastebin]

    BTW, I also noticed that the preview function doesn’t work in the 2.9.2… I thought it was a bug but the behaviour seems related. Preview only shows the most recent published post. My blog only shows most recent. Could they be related? What would cause the blog to show the most recent post only?

    Thread Starter ljkerley

    (@ljkerley)

    Hi Samboll,
    I have no plug-ins installed.
    I installed two different themes (default and another that I had borrowed some code from), and the problem disappeared.
    So I guess the good news is that the problem is not caused by my permalink setup or my .htaccess files.
    Next challenge: I borrowed some code from both of the above themes in my theme, so it is not immediately obvious to me what aspect of my theme might be causing the problem… Does anything jump out at you? (Likely suspects?)

    Thread Starter ljkerley

    (@ljkerley)

    Could the structure of the website have something to do with the rewrite rule not executing correctly?
    I added the WP blog to an existing website. The entire blog is in a subdirectory of the site, e.g.
    https://www.userelement.com
    – images
    – scripts
    – blog
    … various wordpress directories and files

    I have an .htaccess at the root of the site. The code is here:
    RewriteEngine on
    rewritecond %{http_host} ^userelement.com [nc]
    rewriterule ^(.*)$ https://www.userelement.com/$1 [r=301,nc]

    Then I guess WP generates its own .htaccess when permalinks are in use. The WP .htaccess file code is here:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>

    # END WordPress

    Are these somehow in conflict (although again if the files weren’t being found I would expect a blank page or 404…)

    Thread Starter ljkerley

    (@ljkerley)

    … but even then, if the association between URL and text was lost, then when clicking on the URL I would expect no text to appear. Instead it keeps loading the text from the most recent post. I am puzzled …

    Thread Starter ljkerley

    (@ljkerley)

    Ok, so I tried this but unfortunately it didn’t work. The same behaviour – correct url but wrong text – is still happening.
    At one point I wondered if the database was messed up. So I checked to see if the post text was still in the admin console (Posts -> Edit -> Edit) and it is. However, I noticed when I preview the post, the preview shows the most recent post. (I offer this info in case it provides a clue.) … it is like WP has lost the association of the link to the text somehow.

    Thread Starter ljkerley

    (@ljkerley)

    Hi Samboll,
    Could you elaborate on what you mean by resetting the custom permalinks? I deleted the blog .htaccess file as you suggested (no impact so far), but am unsure about the resetting. Do you mean just save the custom setting again? I am hesitating because I am worried that any inbound links to the first post will be damaged as a result.
    Also, your mention of the .htaccess file caught my attention because I have an .htaccess file at the parent level of the whole site. This made me wonder if there is some kind of conflict (of course deleting the WP .htaccess would presumably correct that.) It’s just that I didn’t create the WP .htaccess. Is it part of the standard install?

    I am jumping into the conversation because I have a related issue. I would like to apply a style class to the input tags <input>.
    I could generate entirely new tags but that seems like extra work. i would gladly add to my style sheet but I need someway to specify c-f-7 form elements. Do you have a tip on how I can do that? I looked at the plug-in code and couldn’t find the form name. (I tried some obvious ones but they didn’t work.)

    Thread Starter ljkerley

    (@ljkerley)

    OK, so I got it working. However, I don’t completely understand why it works. I would like to understand it better, so that my future work will go more smoothly.
    I thought that by cross-referencing the about custom template with the about page content (through the template field in the Page admin area) that that would be sufficient to generate the page.
    What worked was adding the post loop statements into the about page custom template.
    This may seem silly, but I don’t understand why I need the loop for my contact page … I am not outputing any post on the about page.
    If anyone has time to explain this, that would be nice. Thanks.

    Thread Starter ljkerley

    (@ljkerley)

    Do I need a hook, action or filter somewhere in my theme to make this plug-in work?

    Thread Starter ljkerley

    (@ljkerley)

    https://www.renovategirl.com. I am using my own custom theme.

    Thread Starter ljkerley

    (@ljkerley)

    The thing I ‘love’ about programming is that sometimes the cause of a problem is not readily apparent based on the symptoms…
    The problem seemed to come not from my page template but from my horizontal navigation menu. I had used the About page permalink as the source location in the anchor tag. When I deleted the About page and recreated it, the permalink changed (of course). Once I updated the permalink reference, the About content loaded fine.

    Thanks for the help, though.

    (Arnold, the table tag thing you saw was ‘legacy’ code from an earlier layout attempt – I was putting graphics in the title and used the table to control the placement. I dropped the idea but forgot to remove the code.)

Viewing 15 replies - 1 through 15 (of 18 total)