• ale_colo

    (@ale_colo)


    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • stvwlf

    (@stvwlf)

    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/

    Thread Starter ale_colo

    (@ale_colo)

    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

    stvwlf

    (@stvwlf)

    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.

    Thread Starter ale_colo

    (@ale_colo)

    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

    stvwlf

    (@stvwlf)

    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.

    Thread Starter ale_colo

    (@ale_colo)

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

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

The topic ‘javascript / feed aggreagator inside post’ is closed to new replies.