Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Well it hacls the core, but to get the functionality you want (and I wanted) is fairly simple. Change the following 2 lines in links.php.

    Line 552:

    '<li>',"</li>","n",
    to
    $cat['text_before_link'],$cat['text_after_all'],$cat['text_after_link'],

    Line 533:

    sort_desc, list_limit
    to
    sort_desc, list_limit, text_before_link, text_after_link, text_after_all

    Now the before and after tags you put into link categories will show up in the code for each link in that category.

    Thread Starter ivode

    (@ivode)

    Ok, for anyone who wants to know, here is how I solved my problem. In “wp-blog-header.php” under the Template Redirection code section, I replaced the code as follows:

    else if ( is_home() && get_home_template() ) {
    header(“Location: https://webroot/archives/category/general/&#8221;);
    //include(get_home_template());
    exit;
    }

    Now when WordPress goes to the main page, it redirects to the archive page. Not elegant but it works well. And best yet, you can navigate to previous entries unlike the other display one category solutions out there.

    Thread Starter ivode

    (@ivode)

    Ok, for anyone who wants to know, here is how I solved my problem. In “wp-blog-header.php” under the Template Redirection code section, I replaced the code as follows:

    else if ( is_home() && get_home_template() ) {

    //include(get_home_template());
    exit;

    Thread Starter ivode

    (@ivode)

    Thanks for any help you have.

    Thread Starter ivode

    (@ivode)

    Still not what I am looking for. Maybe it is easier to ask this….

    How does WordPress initialize the index page? I have wodpress setup in a subdirectory of my site. So there is an index.php in the web root that basically calls “wp-blog-header.php” in the wordpress directory. But I cannot find in the “wp-blog-header.php” file where the index page is loaded.

    Thread Starter ivode

    (@ivode)

    Yes, that is what I am trying to do. And yes, doing a search does bring back a few posts about such a thing. I have actually coded the index page to show one category with no problem.

    The issuess arise when trying to navigate to previous posts. Since the coding simple excludes posts that are not in the specific category, it does not list previous entry pages correctly. Instead when you go to a previous entries page, it lists many of the same entries.

    What I would like is to reset my index page to show the exact same page as the the category archives page. But I am not smart enough to figure that one out.

Viewing 6 replies - 1 through 6 (of 6 total)