Forums

javascript / feed aggreagator inside post (7 posts)

  1. ale_colo
    Member
    Posted 1 year ago #

    Hello,
    Does someone know a way to insert javascript code or asp inside post?
    I found some website that generate automatically js code but unfortunately I couldn't pit it inside the posts, neither using "inline javacript" plugin.
    I wolud build posts like that and insert feeds coming from other sites(I hope to don't do spam, this link is just an example) http://www.kellogg.northwestern.edu/Faculty/Blogroll/All-Blogs.aspx

    That I would do is insert a little window like feeds aggregator inside post.
    feeds coming from just one website is ok too.

    I will appreciate any help
    thank you everybody

  2. stvwlf
    Member
    Posted 1 year ago #

    I've had good results through saving code in a custom field and using this plugin to insert the custom field's content into the post
    http://wordpress.org/extend/plugins/custom-fields-shortcode/

  3. ale_colo
    Member
    Posted 1 year ago #

    Thank you stvwlf but i can't understand a thing.
    if I have already my javas cript code, how can I put the code in a custum field?
    I'm not so expert about this.
    coul you give more informations please?
    thank you

  4. stvwlf
    Member
    Posted 1 year ago #

    What I suggested is very simple.

    It sounds like you are pasting your Javascript into a post in the WordPress editor.

    Instead of pasting it into the editor, paste it into a new custom field, in the custom field section below the editor box.

    Give the custom field a name - let's call it MyJavascript for example.

    After you've installed the plugin, in the place in the pots (in the editor) where you want the Javascript to be, type this instead

    [cf]MyJavascript[/cf]

    Then click the Update button.

    That is a shortcode. Instead displaying [cf]MyJavascript[/cf] in the post, the plugin removes that and substitutes in its place the contents of the custom field, your Javscript. WordPress will not change anything in your Javascript, it simply inserts it in your post in that position when that post (or page) is displayed.

  5. ale_colo
    Member
    Posted 1 year ago #

    I tryed to do it but when I write a post I can't see "the custom field section below the editor box".
    there are just two other fields belong to other plugins.
    is there another section to configurate this plugin?
    I really need to insert code in the post :|

    thank you again

  6. stvwlf
    Member
    Posted 1 year ago #

    the latest WordPress hides that section by default, sorry.

    In the upper right corner of the screen, click Screen Options
    Put a check in the Custom Fields box
    It will now be visible.

  7. ale_colo
    Member
    Posted 1 year ago #

    ok, now is clear :D
    I could to do what I wanted do.
    thank you very much stvwlf for your time and your suggestions!

Topic Closed

This topic has been closed to new replies.

About this Topic