Welcome to WebmasterWorld Guest from 54.227.101.214

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Add the same code in every post

     

cfmtravel

4:50 pm on Dec 5, 2013 (gmt 0)



Hi guys

I was wondering if there is some plugin in Wordpress that allows me to add at the bottom of each post a portion of code/text that is pretty tedious to write each time.

travelin cat

7:56 pm on Dec 5, 2013 (gmt 0)

WebmasterWorld Administrator travelin_cat is a WebmasterWorld Top Contributor of All Time 10+ Year Member



So you only want the code to appear on the bottom of posts, not every page? Also, does the code change or is it always the same?

cfmtravel

8:27 pm on Dec 5, 2013 (gmt 0)



Just in the posts. Let's say that the idea is to present the code and alter the content inside it (imagine a table with different text for each post)

lorax

1:54 pm on Dec 6, 2013 (gmt 0)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



I highly recommend you skip the idea of a plugin and just write the HTML yourself. Save it to a text doc or in a post that you keep in draft mode for future ref. Then just paste the code in when you need it and fill in as you wish.

cfmtravel

4:45 pm on Dec 6, 2013 (gmt 0)



Hi lorax

This was my first idea but I thought that it could exist a plugin to this task.

Post Snippets seems to be pretty close but I have to try to see if I can add content once the snippet is in the post

lorax

1:59 pm on Dec 7, 2013 (gmt 0)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



How much and in what form (text, image, video) is the stuff you put into this framework? It it's not much, you could write a plugin and use shortcode with attribute values that you could pass the content to. Like so:

[mytableshortcode c1="what I want to put into cell 1" c2="cell 2"]

cfmtravel

4:52 pm on Dec 7, 2013 (gmt 0)



I will have quite a lot of content (mainly text). It will be a group of divs to contain different kind of links (video,blog post, articles, pictures, web sites) each link will have title and link + an optional description. After the divs I would like to have a link to open a page to submit a link.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month