Welcome to WebmasterWorld Guest from 54.167.83.224

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Add the same code in every post

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

New User

joined:Oct 30, 2013
posts: 37
votes: 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.
7:56 pm on Dec 5, 2013 (gmt 0)

Moderator This Forum from US 

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

joined:Feb 28, 2004
posts: 3114
votes: 2


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?
8:27 pm on Dec 5, 2013 (gmt 0)

New User

joined:Oct 30, 2013
posts: 37
votes: 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)
1:54 pm on Dec 6, 2013 (gmt 0)

Senior Member from US 

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

joined:Mar 31, 2002
posts:7575
votes: 0


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.
4:45 pm on Dec 6, 2013 (gmt 0)

New User

joined:Oct 30, 2013
posts: 37
votes: 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
1:59 pm on Dec 7, 2013 (gmt 0)

Senior Member from US 

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

joined:Mar 31, 2002
posts:7575
votes: 0


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"]
4:52 pm on Dec 7, 2013 (gmt 0)

New User

joined:Oct 30, 2013
posts: 37
votes: 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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members