Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi, just want to know if you’ve found a solution because I’ve got the same issue: If I insert a pdf file in a content box, the onclick event is injected but If I create a link to… the same pdf, from an archive of a custom post type (archive-articles.php for cpt articles), no onclick is being injected.

    Thanks

    Thread Starter ericthibeault

    (@ericthibeault)

    Why then – when I simply put /feed/rss2/ on the single post – it shows “comments for… (the post title)”. It makes me think that the comment template file is ok.

    Also the wp-commentsrss2.php file only contains:

    <?php
    
    if (empty($wp)) {
    	require_once('./wp-config.php');
    	wp('feed=rss2&withcomments=1');
    }
    
    require (ABSPATH . WPINC . '/feed-rss2-comments.php');
    
    ?>

    How then can it contains bad code?

    Thanks

    Thread Starter ericthibeault

    (@ericthibeault)

    Thanks moshu,

    It seems to work (the link) but it seems that there’s a bug. Do you know what can be the problem?

    I didn’t touch the comments feed’s page since I installed WordPress.

    XML Parsing Error: junk after document element
    Location: https://www.example.com/it/is-instructions/comments/feed/
    Line Number 4, Column 10:			</div><?xml version="1.0" encoding="UTF-8"?>
    ------------------------------^

    Thanks

    Thread Starter ericthibeault

    (@ericthibeault)

    Thanks guys!

    Thread Starter ericthibeault

    (@ericthibeault)

    Hello Moshu,

    I totally agree with you that the visual is for code illiterate people, but the thing is that I’m not the only one creating/editing pages/posts on my wordpress since it is used as an Intranet. And some people doesn’t know anything about html tags.

    Do you know if that deletion of code is a known bug of wordpress? In other words: Am I screwed if I need to go back and forth on Visual and code or there is a solution?

    Thanks!
    – ET

    Thread Starter ericthibeault

    (@ericthibeault)

    Hi,

    Thanks to Ott42, I found that, by installing “the-excerpt-reloaded” plugin, you need to pass all html tags that you want appearing on your site as parameters to that function.

    Regards.

    Thread Starter ericthibeault

    (@ericthibeault)

    Hello Otto42,

    Here is an example of what I’ve wrote, using only the wysiwyg buttons of WordPress’s Page editor (which are for list and bold, in that case):

    Here is a text in “Html” to test

    • html tags.

    And here is the result in the browser (source code):

    FIRST PART: What we see in the web page

    <p>Here is a text in “Html” to test</p>

    <p> html tags.</p>

    SECOND PART: What I’ve wrote in WordPress’ Page editor with his basic html tags (list and bold) – notice the html comment tags.

    <!–
    <p>Here is a text in “Html” to test</p>

    • html tags.

    –>

    Hope this more detailed explanation will give you more clue about my problem! 😉

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)