Forum Replies Created

Viewing 15 replies - 31 through 45 (of 88 total)
  • Thread Starter itissue

    (@itissue)

    Sure awarner20. You know, I’ll do more than that. I posted a blog entry on this topic, and it gives directions on how to create your own RSS Feeds page. Here’s the link:
    https://suefeng.com/2008/01/24/creating-a-rss-feeds-page/

    Thread Starter itissue

    (@itissue)

    This plugin looks great, but it doesn’t seem to list categories at all. I think I’ll just stick with what I have for the time being.

    feeds.php should be placed in the folder that contains whatever theme you are using. Do you have this at the very top of the feeds.php page?

    <?php
    /*
    Template Name: Feed
    */
    ?>

    Try that.

    bricklayer: put it anywhere in the stylesheet as long as it’s not within two {}. Put it after the closing bracket of one section. For instance, if you were to put it after the style for body, put it like this:

    body {
    	font-size: 62.5%; /* Resets 1em to 10px */
    	font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
    	background: #d5d6d7 url('images/kubrickbgcolor.jpg');
    	color: #333;
    	text-align: center;
    	}
    img {display: block}

    Pbal: If you want to use p tags, you’d better use this format, since </p> is a closing tag. <p><img src="url"></p> But that method should work.

    Have you tried looking at the stylesheet? You could add this:
    img {display: block}
    in the stylesheet. Maybe this will work.

    On the right hand side, there should be a module that says “Page Template”. Select Feed from the drop-down menu.

    Sorry. I hadn’t realized I didn’t write directions for that. I just updated the post with the directions needed for creating that page.

    I’m not sure if this is what you’re looking for, but I am currently working on something for that. Everything is working properly, but for categories, it only lists the first category, or it lists the categories without commas separating them. Take a look at this page for more information:
    https://suefeng.com/2008/01/24/creating-a-rss-feeds-page/

    Also, I’m currently asking around for the categories info in this forum post:
    https://www.ads-software.com/support/topic/153370?replies=16

    Thread Starter itissue

    (@itissue)

    Nevermind about that. I figured out the solution. Just use this for full content:
    $isset = $item[‘content’][‘encoded’];
    and call $isset with echo “$isset”;

    To input the author’s name use this:
    $author = $item[‘dc’][‘creator’];

    Now the only trick is to input all the categories listed. Since each category has it’s own set of <category>category name</category> I’m not sure what to do in this case.

    Thread Starter itissue

    (@itissue)

    Okay lisadragon, I sent you a reply in your comments.

    Here’s a more specific way of viewing my problem. Maybe someone can help me then.

    I was wondering how I would call for parts in an RSS feed so I can input those parts onto a page. Here’s a sample feed:

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- generator="wordpress/2.2" -->
    <rss version="2.0"
    xmlns:content="https://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="https://wellformedweb.org/CommentAPI/"
    xmlns:dc="https://purl.org/dc/elements/1.1/"
    >
    
    <channel>
    <title>My Site Title</title>
    <link>https://mysite.com</link>
    <description>Just another WordPress weblog</description>
    <pubDate>Mon, 14 Jan 2008 20:21:09 +0000</pubDate>
    <generator>https://www.ads-software.com/?v=2.2</generator>
    <language>en</language>
    <item>
    <title>A brief interlude</title>
    <link>https://mysite.com/2008/01/14/subject/</link>
    <comments>https://mysite.com/2008/01/14/subject/comments</comments>
    <pubDate>Mon, 14 Jan 2008 20:21:09 +0000</pubDate>
    <dc:creator>Author Name</dc:creator>
    
    <category><![CDATA[Site Update]]></category>
    
    <category><![CDATA[School]]></category>
    
    <guid isPermaLink="false">https://mysite.com/</guid>
    <description><![CDATA[Here's a short description of my post[...]]]></description>
     <content:encoded><![CDATA[Here's my full post with everything I've written in the post.]]></content:encoded>
    <wfw:commentRss>https://mysite.com/2008/01/14/subject/feed/</wfw:commentRss>
    </item>
    </channel>
    </rss>

    What I want to know is how I would call something like content:encoded, or dc:creator, and also how to call all the categories and separate each of them with a comma. I know how to call one of the categories with $category. I tried calling the content with $content, but all it did was return the word array since content is an array. If anyone could help me that would be awesome.

    Also, I changed my url to https://suefeng.com/dailies

    Thread Starter itissue

    (@itissue)

    Still no luck on day five. I wonder why WordPress doesn’t make a plugin that allows you to put all your feeds on one page, and have them list full entries, with username, categories, tags, date, title, blog title, all that useful stuff that Livejournal has. *sighs* For now, I’ll have to deal with what I have. If anyone has any clue as to how to fetch entire entries in a feed, let me know. That’d be awesome.

    Thread Starter itissue

    (@itissue)

    Nevermind. I just needed to update my permalink structure. It works fine now. All I have to do is edit the template for the gallery and I’m done!

    Nevermind. I figured it out. They only show the full path if you start with https://.

    Thread Starter itissue

    (@itissue)

    Can anyone please help me?

    Thread Starter itissue

    (@itissue)

    I was able to figure out how to add categories and a comment link to the feed page, but I wasn’t able to figure out how to insert a comma after each category. Nor was I able to show the number of comments for each entry. Here’s what my new code looks like:

    <?php
    require_once (ABSPATH . WPINC . '/rss-functions.php');
    $url = 'https://x.nuwen.com/feed/';
    $rss = fetch_rss( $url );
    if ( $rss ) {
    echo "<h4>" . $rss->channel['title'] . "</h4>";
    $i = 1;
    foreach ($rss->items as $item) {
    $href = $item['link'];
    $title = $item['title'];
    $pubdate = $item['pubdate'];
    $category = $item['category'];
    $description = $item['description'];
    $comments = $item['comments'];
    echo "<span style=\"font-size:16px\"><a href=\"$href\">$title</a></span>";
    echo "<br /><strong>$pubdate</strong><br />";
    echo "<strong>Categories: </strong>$category<br />";
    echo "<div style=\"padding:0 20px 0 20px\">$description</div>";
    echo "<a href=\"$comments\">comment</a>";
    if ($i == 1 ) break;
    $i = $i + 1;
    }}?>

    Once again, I’d still like to be able to display full entries. Other problems I’d like to resolve include inserting a coma after each category word, and inserting the number of comments there are for each entry.

    Here’s my page, modified:
    https://suefeng.com/affiliates

Viewing 15 replies - 31 through 45 (of 88 total)