Welcome Guest, Not a member yet? Register   Sign In
Slight bug in Real simple Syndication
#1

(This post was last modified: 12-24-2022, 10:13 PM by luckmoshy.)

Hi, I hade made my awesome RSS in my blog and decided to set it somewhere on SEO matter. good!but they have reminded me there is something missing on my RSS link which is
PHP Code:
<?= link_tag('feed''alternate''application/rss+xml'esc($title));
// <link href="http://site.com/feed" rel="alternate"  title="tore blog" /> 

mean it can't generate (type="application/rss+xml") in a link
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply
#2

(This post was last modified: 12-25-2022, 12:35 AM by datamweb.)

Hi,

PHP Code:
        
helper
('html');

        $link = [
            'href'  => 'any',
            'rel'  => 'any',
            'type'  => 'application/rss+xml',
            'media' => 'any',
        ];

        ddlink_tag($link)); 

more info see https://codeigniter4.github.io/CodeIgnit...g#link_tag
Reply
#3

(12-24-2022, 10:10 PM)luckmoshy Wrote: mean it can't generate (type="application/rss+xml") in a link

Thank you.

I send a PR to fix it.
https://github.com/codeigniter4/CodeIgniter4/pull/7022
Reply
#4

(This post was last modified: 12-25-2022, 10:34 AM by luckmoshy.)

(12-25-2022, 12:40 AM)kenjis Wrote:
(12-24-2022, 10:10 PM)luckmoshy Wrote: mean it can't generate (type="application/rss+xml") in a link

Thank you.

I send a PR to fix it.
https://github.com/codeigniter4/CodeIgniter4/pull/7022

Thak you@kenji

(12-25-2022, 12:34 AM)datamweb Wrote: Hi,

PHP Code:
        
helper
('html');

        $link = [
            'href'  => 'any',
            'rel'  => 'any',
            'type'  => 'application/rss+xml',
            'media' => 'any',
        ];

        ddlink_tag($link)); 

For more info see https://codeigniter4.github.io/CodeIgnit...g#link_tag

Thank you @datamweb it works by this way but i wanted to be fixed any way
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply




Theme © iAndrew 2016 - Forum software by © MyBB