luhmann
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Menu listing all posts in current category[Sorry, I discovered that the “code” tags don’t work in these forums. I found the “escape HTML entitites” page however. Hopefully this will work!]
This is ugly, but it works:
<?php
$cat=get_category_names();
$blog=1;
require_once("wp-blog-header.php");
foreach ($posts as $post) { start_wp(); //start of loop
?>- " rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?>
<?
} //end of loop
?>
It requires this hack:
https://www.ads-software.com/support/3/1621#post-4
Forum: Fixing WordPress
In reply to: Menu listing all posts in current categoryThis is ugly, but it works:
<?php
$cat=get_category_names();
$blog=1;
require_once(“wp-blog-header.php”);
foreach ($posts as $post) { start_wp(); //start of loop
?>- ” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?>
<?
} //end of loop
?>
It requires this hack:
https://www.ads-software.com/support/3/1621#post-4
Forum: Fixing WordPress
In reply to: Menu listing all posts in current categoryThis is ugly, but it works:
<?php
$cat=get_category_names();
$blog=1;
require_once("wp-blog-header.php");
foreach ($posts as $post) { start_wp(); //start of loop
?>- " rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?>
<?
} //end of loop
?>It requires this hack:
https://www.ads-software.com/support/3/1621#post-4
Forum: Plugins
In reply to: my-hacks.phpI did OK by putting an include command in wp-includes/functions.php (right at the bottom). It seems to work fine, but it gives me error messages when I’m in the Admin interface – but I can live with that.
Forum: Plugins
In reply to: Hacks don’t work with Betaif you had written that the ‘nightly build of xx/xx/xx’ had a bug, then at least that nails it to a version. ‘Current’ could have meant the full release version, or the nightly, or the CVS.
Point well taken.
Forum: Plugins
In reply to: Hacks don’t work with BetaThanks for the info.
Censuring someone for participating in a wiki is bad form. I added information I thought was relevant, I felt the current information was not version specific and would confuse people. I was wrong – it was just a bug – but how was I to know? The whole point of wikis are that they are a collaborative project, and rely upon those who know better to make corrections. Now that I know better I will make a correction.Forum: Plugins
In reply to: my-hacks.phpI can’t. I need other features in the beta – especially the Movable Type API. Surely there is another way to enable these features…?
Forum: Plugins
In reply to: my-hacks.phpIs there some kind of work-around I can use till the new implementation is ready?
Forum: Plugins
In reply to: Wiki plugin for WP?Have you looked at Erfurt Wiki? It seems to be designed to be easily included in other code.
Forum: Plugins
In reply to: my-hacks.phpI can’t get this to work.
First it checks if you have enabled the setting for the my-hacks file. To enable this go to Options > General Blog Settings > hack_file = true. Once this is enabled it checks for a file in your blog root folder called “my-hacks.php”. If this file exists, then whatever code is in it is executed. If the file doesn’t exist then nothing happens.
This option doesn’t seem to exist in the latest nightly build, which I’m using. There is no where to set hack_file = true that I can find.
Forum: Fixing WordPress
In reply to: Menu listing all posts in current categoryOK, from this wiki page:
https://wiki.www.ads-software.com/index.php/PostsByCategory
I was able to get a start. However, I’m still running into trouble.
Here is what I have:
<?php
$cat=”5″;
$blog=1;
require_once(“wp-blog-header.php”);
foreach ($posts as $post) { start_wp(); //start of loop
echo “<br/> ” . the_title() . ““;
} //end of loop
?>
This has two problems.
(1) It doesn’t produce the right code. For some reason, the “title” appears before the start of the URL, rather than inbetween the href = tag and the closing tag like I would think it should. I have no idea why this is happening.
(2) I still have to manually specify the category. I would like it to be able to know the category of the current post.
Thanks!Forum: Fixing WordPress
In reply to: How to display category name without ul/li links?Has anyone figured this out. I’d like to do something slightly different. I’d like to return the value “category_nicename” for the current post. For the life of me I can’t figure it out. I tried writing a little code, but my coding is so bad it just ended up causing my whole page to not display properly!!!
Forum: Fixing WordPress
In reply to: Remove comments from which template?OK – I figured it out. Somehow the comments tags weren’t parsing right. I deleted the sections instead of commenting them out and it worked fine!
The givaway was the fact that a closing comment tag “–>” appeared in the web page!Forum: Fixing WordPress
In reply to: Remove comments from which template?Well, my attempts to use code tags seem to have failed – you’ll just have to believe me that everything else is commented out. I guess comment tags supercede the “code” tags…
Forum: Fixing WordPress
In reply to: Menu listing all posts in current categoryJust to explain further. I need a snippit of code that will:
(1) figure out what the current category is.
(2) Display a list of all posts in that category, as a menu with links to the name of the posts.
I really need to be able to do this in order for WP to work for the site I am planning, but I don’t know how to go about this. Any suggestions would be greatly appreciated! - " rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?>