New wordpress posts

Carlitaf16

New Member
Last edited:

Carlitaf16

New Member
So I'm trying to modify HTML templates in order to replace the default grid (image and title) with the ones injected by the RSS feed. It's working for the most part, but I can't seem to achieve a simple grid of 3 rows.
Whether I use the [XML_FEED_ITEM_TITLE] or [XML_FEED_ITEM_1_TITLE] the format gets corrupted and repeats of the same post occur.

This is my source
HTML:
<td style="padding:0;">[XML_FEED_BEGIN url='https://example.com/feed/' count='3' offset='1']
                                    <table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;">
                                        <tbody>
                                            <tr>
                                                <td style="padding:0;vertical-align:top;color:#153643;">
                                                <p style="font-size:0px;">[XML_FEED_ITEM_1_DESCRIPTION]</p>

                                                <p style="margin:0;font-size:16px;line-height:24px;font-family:Arial,sans-serif;text-align:center;"><a href="http://www.example.com" style="color:#ee4c50;text-decoration:underline;">[XML_FEED_ITEM_1_TITLE]</a></p>
                                                </td>
                                                <td style="width:5px;padding:0;font-size:0;line-height:0;"> </td>
                                                <td style="padding:0;vertical-align:top;color:#153643;">
                                                <p style="font-size:0px;">[XML_FEED_ITEM_2_DESCRIPTION]</p>

                                                <p style="margin:0;font-size:16px;line-height:24px;font-family:Arial,sans-serif;text-align:center;"><a href="http://www.example.com" style="color:#ee4c50;text-decoration:underline;">[XML_FEED_ITEM_2_TITLE]</a></p>
                                                </td>
                                                <td style="width:5px;padding:0;font-size:0;line-height:0;"> </td>
                                                <td style="padding:0;vertical-align:top;color:#153643;">
                                                <p style="font-size:0px;">[XML_FEED_ITEM_3_DESCRIPTION]</p>

                                                <p style="margin:0;font-size:16px;line-height:24px;font-family:Arial,sans-serif;text-align:center;"><a href="http://www.example.com" style="color:#ee4c50;text-decoration:underline;">[XML_FEED_ITEM_3_TITLE]</a></p>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    [XML_FEED_END]</td>

Here's what I get

1.jpg

Here's an example with a stripped down version. No plug in to display RSS post thumbnail, no nothing. Simple Title of 3 posts, and I get a repeated row of 3 columns.

HTML:
<!DOCTYPE HTML>
<html data-lt-installed="true">
<head><meta http-equiv="content-type" content="text/html" />
    <title>XML FEEDS</title>
</head>
<body data-gramm="false" data-lt-tmp-id="lt-553767">[XML_FEED_BEGIN url='https://example.com/feed/']
<table>
    <tbody>
        <tr>
            <td><strong>[XML_FEED_ITEM_1_TITLE]</strong></td>
            <td><strong>[XML_FEED_ITEM_2_TITLE]</strong></td>
            <td><strong>[XML_FEED_ITEM_3_TITLE]</strong></td>
        </tr>
    </tbody>
</table>
[XML_FEED_END]<br />
[COMPANY_FULL_ADDRESS] [UNSUBSCRIBE_URL]</body>
</html>

3.jpg

Thanks in advance!
 
Last edited:

laurentiu

Well-Known Member
Staff member Support Staff MailWizz 2.0 Tester
Whether I use the [XML_FEED_ITEM_TITLE] or [XML_FEED_ITEM_1_TITLE] the format gets corrupted and repeats of the same post occur.
As i can see from your picture you add count='3' this means: "count – integer – the number of items you want to receive back from the feed." in your case you will receive 3 items back from your feed and you have 3 tables.
Here's an example with a stripped down version. No plug in to display RSS post thumbnail, no nothing. Simple Title of 3 posts, and I get a repeated row of 3 columns.
Can we have url from your feed?
 

Carlitaf16

New Member
Hi @laurentiu thanks for your reply!
I understand what you say, but if you look at my last example I'm not using the "count" integer, but still get the triple output.

this is my feed https://pkadoras.com/feed/

But I also used other site's feed and the result is always duplicated or triplicated.
I think the issue is when I try to make 3 columns, as far as I list the posts vertically everything works fine.
I wonder if there's a way to list the posts horizontally in a 3 column grid.
 
Top