• Resolved riverwriter

    (@riverwriter)


    On a separate page on my site, I want to list links to my posts alphabetically indicating post date and tags — and to really be outrageous, the first few lines of the post.

    I can do this by hand in a CSS/HTML table every time I post, but would like to use RSS feed if possible, and have it sort itself alphabetically, updating at time of post.

    Has any work been done on any part of this? Is there already a plugin that does it? Am I dreaming in technicolour?

Viewing 15 replies - 1 through 15 (of 31 total)
  • I second this, I to am looking to create and index page for my site.

    Scott Newkirk

    Dagon Design’s plugin referenced by HandySolo works splendidly for this. It’s just what you describe except for the outrageous part. ??

    Anyone know if Dagon’s sitemap plugin will let you simply list all posts by post-title (without sorting by category)?

    I haven’t tried it yet. The sample sitemap is divided by category, which I don’t want in this case.

    Listing all posts sorted by title is pretty simple. Just initialize (place before) The Loop in your Page template with the following:

    <?php query_posts('showposts=-1&orderby=title&order=ASC'); ?>

    More on query_posts():
    https://codex.www.ads-software.com/Template_Tags/query_posts

    Thread Starter riverwriter

    (@riverwriter)

    Back to my original query: I have installed the sitemap generator into a Page on my WordPress 2.0.2 site, and it works like a charm. Now all I have to do is tweak it a bit. I certainly consider this worth donating to. That was a lot easier than I had thought.

    riverwriter:

    I am glad that you have found it useful ??

    [moderated]

    Whoops.. I must have missed something in the posting rules ??

    Yep. Offering paid services is a no-no (or, soliciting for “voluntary” donations…)

    I can see how it would have come off as sounding like that ?? No problem.

    riverwriter: It would be fairly easy to change the script to show the first few lines. It already has the capability of showing the first X characters/words when there is no title for the post, so it would just take a little modification.

    Thread Starter riverwriter

    (@riverwriter)

    . . . and that modification would be . . . ?

    BTW, since these posts are mostly poetry, I would like to place a slash (/) at every hard return, since I expect that the program will run lines on . . .

    Here you go. To change the number of lines displayed you can edit the variable in the ddsg_get_contents function.

    https://www.dagondesign.com/files/dd-sitemap-gen-riverwriter.txt

    It will display the first X lines of the posts after the post title.

    It is fairly rough.. but let me know how it works for you, and I might end up making it an option for it in the next version.

    Thread Starter riverwriter

    (@riverwriter)

    Thank you, Aleister. I have the new version of the plugin up and running. I must be missing something: the ddsg_get_contents function shows the number of lines set as 3, but I am getting the whole post showing. For some reason it is not truncating at the end of the third line.

    Here is the page in question: https://riverwriter.ca/wordcurrents/?page_id=83

    Your example page is not showing any lines of the content.. or did you put it back to the old script for now?

    I made a modification and uploaded it again (same link I gave you before). See how that works for you ??

    Thread Starter riverwriter

    (@riverwriter)

    Yes, I left the first revision up for a while, then figured I should go back to the original version for my visitors.

    I have the new version up now. It is certainly an improvement, but it cuts off, not after so many lines, but after so many line breaks. This means that poetry entries break off after two or three lines, but the prose breaks after a line break, which in this case is two paragraph breaks; sometimes that means there is a lot of text showing. Perhaps a word count would work better. I imagine a word count of twenty would be a good default.

    I am puzzled by the fact that in the second post, it seems to have picked up a bold code and made all the subsequent entries bold. Hmmm

    Since the line breaks are observed, the \ character is unnecessary. I presume I can remove it by removing the one line of code getting it. I have not edited any of the files, wanting to show you what they do as you wrote them.

    I am sorry if this is turning into an endless marathon.

Viewing 15 replies - 1 through 15 (of 31 total)
  • The topic ‘Looking for self-updating alphabetical list of posts’ is closed to new replies.