How to add this to my WP post template

by Q-Man
4 replies
  • WEB DESIGN
  • |
I am using Wordpress to post several articles and I would like to offer my readers the ability to copy the article's html code so they can publish the article on their website.

Basically I want a scrolling window at the bottom of the post that will have the above article's html code ...like the ones used on most article directories (i.e. Advertise Articles)

I am not a coder, I know some basic html, that's about it. Thus far ... I added the html code to create the boxes and their layouts into my themes wp single post .php file...but unsure what code to use so that the article in the post automatically populates the boxes. Or if this is even the best way to approach doing this.

Any suggestions as to the easiest way to accomplish this?

Thanks,
Q-Man
#add #post #template
  • {{ DiscussionBoard.errors[3172903].message }}
    • Profile picture of the author sannu123
      Hello friends,,,,this is sannu here,,,,,I'm new here,,,I like this site very much,,,thanks for share with us,,,,
      {{ DiscussionBoard.errors[3173645].message }}
  • Profile picture of the author Mike Baker
    Write your article in the Visual Editor and when are finished, click over to the HTML Editor. Copy it all and then go back to your Visual Editor. Go to the bottom of the article and hit enter one or two times and paste the html code there. Then select all the html code you just pasted in and then click the Blockquotes button. It's the 6th button in from the left.
    Signature

    {{ DiscussionBoard.errors[3181372].message }}
    • Profile picture of the author Q-Man
      Hi mikescos thanks for your input it would work, however I'm looking for a more "automated" way of doing this either through html or a simple javascript code.

      Hey schwarzes I checked out the plugin and it looks to be exactly what I may need. As I was able to set it up to automatically include the scroll boxes beneath the original post.

      Unfortunately though I have been unsuccessful in creating the code to automatically populate the scroll box(s) with all of the post's html code (i.e. content & title).

      Do you, or anyone have/know a simple code I could use to do this. At this time I do not need multiple boxes as shown in the link of my original post... just one scroll box that included all of the original post content and title would do. ...Though having the code to also populate all of the different boxes would be nice, but not necessary at this time.

      Again the goal is to allow readers to easily copy & paste my post's content into their website and have all the post's html code intact. (i.e. like an republishing an article from an article directory)

      Thanks in advance,
      Q-Man
      {{ DiscussionBoard.errors[3187855].message }}

Trending Topics