ivode
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Link categories the “before” formattingWell 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.
Forum: Plugins
In reply to: Replacing Index with Archive PageOk, 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/”);
//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.
Forum: Plugins
In reply to: Replacing Index with Archive PageOk, 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;Forum: Plugins
In reply to: Replacing Index with Archive PageThanks for any help you have.
Forum: Plugins
In reply to: Replacing Index with Archive PageStill 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.
Forum: Plugins
In reply to: Replacing Index with Archive PageYes, 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.