Wordpress lets you create pages that contain static content. The Talks and About pages on this blog are two examples. Unfortunately, until now you could not include posts inside of these static pages. With my new Inline Posts Wordpress Plugin (version 2.1.2g) (2KB), you can!
See the SWX Showcase and SWX documentation pages on swxformat.org for an example of the plugin in use.
In a nutshell
Download and install the plugin and you can include posts in pages (and other posts) by entering the Post ID surrounded by double square brackets ([[nnnn]] where nnnn is the numeric ID of the post you want to include).
Why include posts in pages?
The ability to include posts in pages is something I've felt the need for several times in the past. Basically, the idea is to use posts as sections within a page, with the post title appearing as the section header.
Most recently, I wanted to create the SWX documentation for the SWX homepage as a series of blog posts. This way, each section could have comments on it and I could easily update a single section by editing a post and change the order of sections on the page by changing the order of simple tags that correspond to the posts. I could also show atomic last-modified info for each section so it would be immediately obvious if any sections drift woefully out of date (something that can easily happen to long pieces of documentation).
Since this functionality didn't exist (and believe me, I searched far and wide on the Internets), I decided to roll up my sleeves and try my hand at creating my first Wordpress plugin. It was not a difficult process once I tracked down the hook I needed to latch onto and blew the relearned regular expressions for the umpteenth time.
Installation
- Download the Inline Posts Wordpress Plugin (version 2.1.2g (2KB) and unzip it into your wp-content/plugins/ folder.
- Log into your Wordpress administration panel, click the Plugins tab, and click the Activate link for the Inline Posts plugin.
Using
- Start writing a new page (or edit an existing page)
- In the place on the page where you want to include a post, enter the ID of the post, surrounded by double square brackets in the form [[nnn]].
That's it! :)
You can also include posts in other posts using this method (though I'm not entirely sure why you would want to!) And, since pages are really just posts (confused yet?), you can use the Page ID to include a page in a post or a page in another page too if you really feel like that will make your life better! :)
To see an example of it in use, look at the Wordpress page on this blog as you will see this post included in it. Note that this is the first version of the plugin and I'm testing it out as I go. It's only been tested (and not much, at that) on Wordpress 2.1.2. I've tested it on 2.1.2, 2.3.x, and it's running well on 2.5. That said, use at your own risk! :)
I hope this plugin will be as useful for you as it has been for me.
Related plugins
If you'd like your wonderful new pages to show up in searches, install the Search Pages 2.0 plugin. The two plugins work together well but you will get included posts returned as well as the pages in which they are included (which is expected behavior). Even if your pages are entirely made up of posts, having them show up in searches within the context of the page is still useful.
Finally, you may not want the posts that you include in pages to appear on the front page of your blog (or perhaps, not even in your site's feed or in the archives). You can exclude inline posts from these places by using the Ultimate Category Excluder (UCE) by Kyle Slattery. Install this plugin and then put all the posts that you don't want to appear on the main page in a separate category (on SWXFormat.org, I chose "Documentation" as the category to exclude). Then, in the Options panel for UCE, check the "Exclude from Main Page?" option next to that category.
Known issues
For some reason the number of comments on a post is not displaying correctly on Wordpress 2.0.2 (on this blog). It does display correctly with 2.1.2.
Changelist
- Version 2.1.2g: (August 28, 2007) Added automatic table of contents (TOC) creation for pages. If you want the TOC included in a page, use the tag [[ TOC ]] (without the spaces). Also added Top anchor links for easy navigation from TOC to topics and back.
- Version 2.1.2f: (August 27, 2007) Anchor tags are now added to topic headings so you can link to specific topics on a page in the form: http://myblog.com/somepage/#post_id as in the following example: http://swxformat.org/documentation/#85).
- Version 2.1.2e: (August 25, 2007) The plugin now removes HTML comments and the linebreak before the initial double bracket so that these don't cause Wordpress to display additional <br /> tags in the output.
- Version 2.1.2d: (August 25, 2007) Raised priority of the plugin so that it doesn't conflict with other plugins like the CodeHighlighter plugin. Also removed an error_log trace that would have resulted in large log files (the plugin no longer outputs any debug information).
- Version 2.1.2c: (August 24, 2007) Added "Edit Topic" links so you can edit an included post in a page without having to click through to that post first.
- Version 2.1.2b: Added admin panel and option to set the tag that the titles of posts are displayed in (h2, h3, etc.)
- Version 2.1.2a: Changed default tag to [[nnn]] from [nnn].
- Version 2.1.2: First release.
License
The Inline Posts Wordpress Plugin is released under the open source MIT license.
The Inline Posts Plugin for Wordpress article by Aral Balkan, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 2.0 UK: England License.
Download link for inline posts zip is 404.
Sorry, Nancy! I’ve fixed it now :)
I think this may be exactly what I’m after. Does this work the other way around too, i.e. can I include the contents of a page in a post?
Just a heads up: I’ve updated the plugin to version 2.1.2.a (I’m keeping the latest Wordpress version its tested with as the main version and tacking on a letter for the revision).
With this version, you need to use *double* square brackets. This is so that it doesn’t conflict with array syntax in code if you have code samples. Previoulsy, something like var a:Array = [2]; caused post 2 to be included.
Please use this latest version, especially if you have code on your blog.
@Olly:
Pages are really just posts, so yes: If you include the Page ID in a page or a post, you will get the page included too.
Wonderful, thanks. I’ll give this a try later :)
Nice plugin! Thanks!
Update 2.1.2b gives you the ability to set the tag that you want to use to display the titles of posts. It defaults to a H2 tag.
Hey aral, thx for that.
I was looking for this for ages now :)
I will try using it with
http://wp-plugins.net/plugin/Programz/
too
It should rock :)
[...] I updated the SWX documentation today using my Inline Posts Wordpress Plugin. (And I’ve also updated the plugin twice just today as I discovered issues with it during the process, so update yours too if you’re running an earlier version.) [...]
Argh! This is exactly what I needed when I designed a new site with WordPress a month ago! :-)
On my personal site, http://stevemooradian.com , I used pages/posts within pages to control all my content sections via the tremendous WP admin interface. Because I didn’t have this friggin’ awesome plug-in, I had to relate sub-pages to parent pages by the “post category”. Your plug-in makes this MUCH MUCH MUCH cleaner. I want to shoot myself. :-)
This plug-in is really an absolute must when using WP for any CMS type site. WP is an obvious choice due to the familiarity most web-savvy developers have with this great blogging platform, and due to the easy-to-understand admin interface that makes it updateable by
simpletonscustomers.[...] I just added automatic table of contents generation for my Inline Posts Wordpress Plugin. Place a [[ TOC ]] (without spaces) tag anywhere on a page to have it replaced with links to the various topics/headers (i.e., included posts) on the page. [...]
Great plug in Aral! Steve don’t shoot yourself, just use it next time.
[...] Inline Posts Plugin for Wordpress at Aral Balkan – s posts kan vises p pages. Hmmm. [...]
Hey there,
i downloaded your plugin into plugin directory but it is not showing in the plugin tab in admin section.
can you plzzzzzzzzzzz help me out. i downloaded it twice. but doesn’t work
i am working on wordress 2.2.2
plz reply asap
minal
Hi Minal,
I don’t have 2.2.2 installed currently so I’m not sure if that’s a problem with that release. Have you unzipped the file that you downloaded?
Question, could this be changed up to work off category id’s instead of post id’s? Say for example you you post something in a particular category and you want a page to reflect everything that is posted in that category.
Hi Craig,
It’s definitely possible to do what you are asking (include all posts in a category in a page) and I do see the use in it (I was thinking that’s how this would work initially, but then I realized that I wanted control over the order in which posts appeared).
Actually, the ability to display all category posts is built in to Wordpress so a separate plugin to display all category posts as a page should be very easy to write. I don’t think I’ll have time to get round to doing this though.
Great plugin!! I have a question though. When I create a post it shows up in the “main” blog page. I can add it to other pages without any trouble using the [[x]], but how to I get the post to ONLY show up in that page and not in the “main” blog page?
Thanks!!
Hey Aral,
Your stuff is working great. there was some minor error which got sorted out.
However now my problem is that with ur plugin our posts show on the other Page that we want to but they even show on the homepage of posts. I mean they r duplicated. Can i have the posts show up ONLY on the Page I want and no where else??
That would be great help actually
I am working on my school’s website- http://www.devashishsankul.com
If you visit the website you will notice that the ‘What’s New?’ page has been allocated as the posts page. But what I even wanted the student’s to write posts and those posts to show on ‘StudentSpeak’ Page.
Now with Inline Posts it does happen but the posts even show on the What’s New page. So then it does not make sense. Please let me know if i can do something about it.
Thanks for such a beautiful plugin!
Minal
Hi Minal,
The best way to try and achieve this would be to tag a post with a specific category (wish they called them tags, really, in Wordpress) and then filtered to not have posts in the category displayed on the blog.
I found a plugin called Category Visibility that does this but apparently it doesn’t work in Wordpress 2.1 and above.
I want to write a plugin to do this but I’m not sure I’ll have the time before my hectic conference speaking schedule kicks off this month.
Maybe there already is another plugin that lets you do this? If you find one, please let us know here too! :)
Hi Minal,
OK, I found the plugin we need, it’s Ultimate Category Excluder (UCE) by Kyle Slattery.
Install this plugin and then put all the posts that you don’t want to appear on the main page in a separate category (on SWXFormat.org, I chose “Documentation” as the category to exclude). Then, in the Options panel for UCE, check the “Exclude from Main Page?” option next to that category.
You can see the plugin in action on the SWX homepage.
[...] Wordpress Pages normally contain only static content but the pages in the SWX documentation are a collection of posts, strung together by their post ids using a plugin I wrote called Inline Posts. [...]
Is there a way to display categories contents on specific pages?
Hi Neil,
Unfortunately, not with this plugin. In fact, I’m not sure how it would work in any case (or what additional utility such a thing would provide), as a category display is already included in Wordpress. And, with a category display, you wouldn’t have the flexibility of ordering the posts (unless it supported sort order filters on specific attributes).
Hi Aral. Really liked your plugin. I hope you don’t mind, but I used it to build another one. You can check it out here:
http://www.meramenteilustrativo.com.br/wordpress/
or see it in action here:
http://www.meramenteilustrativo.com.br/trabalhos/
What it does now, is it allows you to add all posts in a particular category at once.
Would like to hear from you. Maybe we could share some ideas on how to make it even better.
Hi Rodrigo,
That’s really cool! Someone was just asking about category support. :)
Hi Aral!
Fantastic Plug-in!
I have a question:
How do I remove the following from showing up along with my post:
“Last modified –. — comment. Top.”
I’d like to keep my posts simple and clean on the page.
Also, is there a way to only show a limited amount of text from a post, such as up to where the “” tag is used?
Thanks!
Okay total novice here, I downloaded Inline tonite, and its installed, the newest version. Do I write the location of the page [[5]] in the visual or code part when I write a post, I tried it and it didn;t show up anywhere. Second question what was the improvement made on the first version? Thanks very much. TS
[...] การนำบทความอ่านมาแทรกในหน้าบทความปัจจุบัน [...]
Hi just wondering if there is anyway to get this great plugin to work the ‘more’ tag?? thanks in advance!
Dali:
In the plugin’s php file, I commented out the following:
''.$lastModifiedText.' '.$commentsText.'. '.$topLink.'. '.$editLink."".That left me with an open “a” tag (following an “a name=” tag), so I added the editLink and the topLink back in below the comment:
''.$topLink.''.$editLink."".Not very elegant, and it doesn’t strip out all the metadata (Top is still there), but it does get rid of most of it
Aha. Found the source of the open “A” tag, so I don’t need the toplink with its closed tag to close the open one.
Comment out the lastmodified and etc, as described above.
Then look a couple lines up in the code for:
$postTitleText = "<$titleTag>$linkToPost$postTitle$anchorTag</a></$titleTag>";
To fix it up, drop another </a> tag in after “$postTitle”:
$postTitleText = "<$titleTag>$linkToPost$postTitle</a>$anchorTag</a></$titleTag>";
A little cleaner than my previous effort.
Hey Aral!
I was looking for a plugin/hack to include all posts of a category of your choice on a page (yes, i know: ‘Category/catName’ does that, but I wanted something where i can put some more info).
I knew about your plugin so I thought I might adapt it to my own needs, and so I did.
I change a few things, and added a function.
It now checks for [[cat:15]] -like tags, replaces it with all post-tags in that category, and then continues to your function where posts are included into the page/post.
I just wanted to thank you for your work again :)
If you’re intrested, I’ll mail it to you :)
Greetings
@Lars: Glad to hear that you figured it out. I will try and find some time to add this to a future version of the plugin.
@Ronny: Very cool. Why not make it available for download? :)
[...] Spontaan dacht ik aan categorieën, maar dan krijg je meteen die vervelende ‘/category/’ in je URL. Dat vond ik niet bepaald aantrekkelijk en ging op zoek naar een plugin voor Wordpress (waar ik mijn project op baseer). Ik wist al van Aral Balkan’s plugin voor inline posts af, maar ik wist niet echt of dit mijn probleem uit de wereld kon helpen. Je raadt het al. Dat lukte niet hoe ik wou. Ik heb dan Aral’s plugin maar bijgewerkt zodat hij deed wat ik wou. [...]
@Aral: I actually wanted it to be posted by you, since you actually did the actual work. I’ve put it online on my site now, but if you wish so: Feel free to make it available here :)
Keep up the good work!
Donwload page: http://www.nocreativity.com/blog/inline-posts-en-categorieen-powered-by-aral-balkan/
Hi Ronny,
That’s really cool of you :) I’m a real fan of decentralizing stuff though. It’ll be easier for you to post updates/etc. if you do it all yourself :) I’ll link to it of course!
Hi there Aral,
The plugin sounds GREAt. Still…I do not know why BUT there is NOWAY I can make your plugin to work. I have wordpress 2.3
I write in the page: [[]]
What I get on my code view is: [[<6>]]
And then nothing happens: [[]]
Any suggestions? Thank you
If the code doest look right have a look here: http://aenaon.info/toget/screenshots/01post.jpg
Hi,
You shouldn’t be using angled brackets, just two square brackets. Hope that fixes it! :)
[...] Inline Posts Plugin for Wordpress [...]
It doesn’t work for me at all. Yes, I’ve unzipped and the plug-in is activated.
If I want to include id 5, I should write [[5]], right?
Nothing else? Am I supposed to write this in “visual” or “code” mode?
Or is it somewhere else? In the loop or what?
thanks
[...] Inline Posts Plugin for Wordpress at Aral Balkan – Wordpress lets you create pages that contain static content.Unfortunately, until now you could not include posts inside of these static pages. With Inline Posts Wordpress Plugin (version 2.1.2g), you can! Technorati Tags:plugin, plugin+wordpress, plugins, plugins+wordpress, WordPress, wordpress seoTag Links:plugin, plugin+wordpress, plugins, plugins+wordpress, WordPress, wordpress seoRelated Posts:Useful WordPress Plugins: Shopping cart, Podcasting and Emotions WordPress Search and Replace plugin, Google Gdrive, Gmail Hacks, RSS Subscription pligins for WordPressSubmit Your RSS Feeds | Post Rating Plugin for Wordpress | Using WordPress as CMSForum WordPress Plugin, WordPress Download Counter PluginDigg This – Wordpress Plugin, WordPress Blogroll Timestamp [...]
[...] To get the post onto the static page you need to enter the Post ID surrounded by double brackets [[Post Id Here]], and there you have it you post will now appear on your static page. This is great if like, example on this site, you have a front page and then a static news page, you can post your story as normal in the category news and publish to the front page, then using the plugin and [[Post ID]] you can also add it to the static page without having to add it in manually. So to download this plugin visit the authors website Aral Balkan. [...]
I love the plugin and it worked fine on my local server but when I ported the whole site to the live server every time I activate the plugin I get a blank page with:
“” (2 UL tags)
and nothing more.
You know what the problem could be?
Hi Martijn,
Sounds like an issue with your deployment server. Are you seeing any errors in the error log?
It’s a windowsserver and I now have problems with another wordpress site on that same server. Now just hope that I can persuade my client to switch servers.
We recently featured your plugin on our website wpcandy.com and a person named Jai commented about on the fact that if you have a post that has the MORE tag in it, when using your plugin to put the post on another page it does not display the MORE tag.
I thought this was a very good find and perhaps in later versions there maybe a fix for this or an option to include the MORE tag or not.
Thanks Michael.
Thanks for the bug report Michael, I’ve made a note of it and will look into it. (Thanks also for featuring it on your site) :)
You are quite welcome ;)
Aral,
I can’t get Options > Inline Posts > Title Tag to work. No matter what I put into the “
I can’t get Options > Inline Posts > Title Tag to work. No matter what I put into the text-entry field nothing happens. What is the format for the code to enter? I’m using WordPress 2.3.
Thanks!
Would it be possible to change the time format to the one my blog page uses? Aswell as add posted by author and posted in category? I have tried and have had some luck with author but it is always glicthy. Ie I am trying to skin this post exaclty the way the blog page skins the post? Could we not just call up the commentform and title from the single.php?
Could you update this for 2.3? I really like it and it seems to be the only thing out there like it. I’m surprised it’s not pur of wordpress now. Anyways, when I activate it it makes my text spread out into the sidebar. Thanks in advance for any help you might give.
@Mike, @Dave: Hey guys, I’m currently on the road, speaking at a conference in LA. I’ll look into making this work with WP 2.3 (after I upgrade to it!) on my return — apologies in advance if it takes a little while :)
@Dave: Yep, I agree, it would be very nice to see this become part of Wordpress.
I absolutely love this plug-in, but I’m also wondering if there’s any way to edit it so that I can use a similar timestamp and “By Name” format that I use on my primary blog page? The page has multiple authors, and it would be great if at least the author name can show on the timestamp at the very least. Again, I really appreciate the plug-in, thanks for creating it!
Thanks Aral !!
This is just what I was looking for…
[...] Inline Posts Plugin for Wordpress at Aral Balkan Might be interesting. (tags: plugin wordpress blog code) [...]
[...] Inline Posts Plugin for Wordpress at Aral Balkan (tags: wordpress plugins) Tags: none [...]
Hi Aral,
figured out how to use it… wasn’t too tricky.
On my sermons page, http://fbcwaynesboro.org/wp/sermons I have included sermon notes and broken with more tag. Now, with the inline posts plugin, the posts appear on the sermon page, with full text of note, and no mp3 file to play, unless you click on the individual post.
I’ll play around a little more;l but I’d like to see an excerpt of the notes, with the sermon MP3 file that could be clicked on and played on the sermon Page. If people wanted to read more, they could go to the full posts.
Any advise?
Thanks again, this is a really needed plug!
Oh…. one more thing, I’m using podPress.
Hi Dave,
I just upgraded to Wordpress 2.3.1 and I’m not seeing the issue you’re describing (it’s working perfectly for me.) Could it have something to do with the theme you’re using, I wonder.
Thanks for posting back Aral, perhaps this is theme-related… I’ll take a look there. This is a great tool! Thanks again
Hi again Aral…
would it be incredibly difficult to somehow modify this to insert code for a single category… rather than single posts?
I have been trying to figure out a way to use a conditional tag; so far, your plug has been the only thing that really works; it just requires going into the page and adding the tag fo each post added… seems like this could be tweaked; although… I’m really not a pro, in fact, I’m still a beginner with WP!
Thanks again!
Hi All, hi Aral,
I suggest to add these lines to Aral code to show all posts of a category. You have to write category ID number in brackets, instead of post ID number. I hope this help. It is the only way to merge pages and categories. I think to add static code page to category template it not a suitable for general users.
// Get the Post IDs to include. Post IDs are in the form [nnn].
preg_match_all(’/(?ID;
$i = $i 1;
endforeach;
Hi All, hi Aral,
I suggest to add these lines to Aral code to show all posts of a category. You have to write category ID number in brackets, instead of post ID number. I hope this help. It is the only way to merge pages and categories. I think to add static code page to category template it not a suitable for general users.
// Get the Post IDs to include. Post IDs are in the form [nnn].
preg_match_all(’/(?ID;
$i = $i 1;
endforeach;
…
//add $text.
$text = $text.$postTitleText.”.$lastModifiedText.’ ‘.$commentsText.’. ‘.$topLink.’. ‘.$editLink.”".$postBodyText.”\r\n”;
…
and move the replace placeholder line out from the for code
bye, Massimiliano
Sorry for problems including code in my post. Please find the function at this link. http://www.margaron.it/d/massimiliano.txt
MM
Hi Massimiliano,
where exactly does this function need to go?
I think I follow you; but just needed a little more detail.
Thanks, David
Hi Aral,
I am a total newbie to wordpress and landed on your page because i wanted to include posts in a page.
Your plugin sounds fab… but my first question is where can I find what version of wordpress i am using?
does this work for blogs at xxxyyzz.wordpress.com?
and lastly if it does work for the my sort of blogs where can i find the wp-content/plugins folder?
I knw i am a total newbie… but don’t know where to go for help!
Esha
I followed the directions to the letter. It doesn’t work at all for me. I am using a very recent version of wordpress. I just get a bunch of bracket characters and the like.
Hi David,
the modification works fine for all sites. You have to replace the function you find in my txt file http://www.margaron.it/d/massimiliano.txt, inside the Aral php file (in other words, you have to find this function inside php code and replace it, but don’t touch the code before and after). Then install the modified plugin following Aral instruction. That’s all!
Massimiliano
Hello all, I found the Inline Posts plugin (thanks very much Aral) after wanting to include posts within a page. After thinking my project requirements out, I realized I wanted to display a specific category of posts and decided to use Rodrigo Rutkoski Rodrigues’ Composite Post plugin along with the Improved Include Page plugin.
Ideally, what I want to do is remove as much of the coding side of things from the client as possible and make their site really easy to edit.
I wanted to have a listing of News posts displayed on the Home page of the site and remove the need to put the inline posts code within the Home page because this would look a little sloppy…
So, I created a News Page and put the inline posts code there to include my entire news category. Then I used the include page code to include my News page in the desired spot in my page template if and only if a user is on the Home page.
If the client has new News to post, they just create a new post and it will appear on the Home page!
I guess it’s still a little sloppy having the inline posts code in the News page, but I thought it less sloppy than having it in the Home page where they will be more likely to edit the text. I’ll just tell them to not edit the News page! :)
The only thing I’m missing in my setup is the ability to control how many News posts are displaying… I haven’t really taken a look at the Composite Posts code too heavily but there must be a way to do this (somehow in the // select posts from category section). Say I wanted to limit the # of posts displayed to 3 so the News section on the Home page doesn’t end becoming a huge list. Anybody have any ideas?
I’d be glad to share more about how I implemented this if anyone wants to know.
Cheers,
Jonah
Hey it’s me again, I just figured it out – 5 minutes after I posted my question!!! To limit the number of posts returned in the Composite Posts plugin just find line 111.
Change:
$posts = get_posts("category=$catId");To this:
$posts = get_posts("category=$catId&numberposts=3");I just added &numerposts=3 to the get_posts function. You could change 3 to any other number.
This is just the regular WP get_posts() function and you can use all the other arguments too!
Cheers,
Jonah
Hello,
great plug in. Installed without a hitch. My question is the same as Trevor’s above. When adding a post, I want it to go directly to a subpage and not display on the Homepage. They way it is now, I create a post, note the post id. Then [[x]] the post on the page I want it. Then it still shows up on my home page. Any way around this?
To Eric and Trevor: To achieve your request you would need to modify the way the wordpress loop is returning posts. You can exclude certain posts from the main loop via information on this page – http://codex.wordpress.org/The_Loop
Search for excluding posts, its pretty easy to implement. If you want to exclude the posts returned only on the home page you will have to step into Page Templates and create a specific template using the exclude code above for the page you want to exclude posts from and then an ordinary template for your other pages where you don’t want to exclude posts.
Wordpress is a very flexible system and if you just search around a bit and read some of the documentation on how it works you will understand a lot more.
Good luck!
hi, really nice plug-in (i include post in post, post in page, page in post…funny!!!)
a single question, there is a way to include only the first part of the post BEFORE the — more — option?
thank you
Awesome plugin man! Thank youuu! :)
Great plugin. I scanned the comments above to see if the “more” tag is available. It would be great if that option could be included. Thanks for writing such a useful plugin.
Awesome plug-in !! I’ve been hacking away all week trying to find a solution to this problem – cheers.
Aral, does it automatically re-write the H1 header tags as H3’s or is that a manual task in creating the composite page (eg: “showcase”)
Hi,i try to install on WP 2.3.1,but it not working, will it support 2.3 and above?
@barry.b: You can choose which tag is used for titles in the administrator, under Options -> Inline Posts.
@apad: It’s running correctly here (http://aralbalkan.com/wordpress) under Wordpress 2.3.2. What’s the error you’re getting?
Hi,
I am not sure if you can help I run http://www.wearevilla.co.uk I am pleased with my blog page but I want to say post a post and it go to the news page as well as the home page any ideas?
This plugin is the solution for my site. It really works great. However I have a problem. If you got to http://www.linux.dropbike.com/ you will see that black bar accross the page that does not belong there. It includes the last post. It only happens when the plugin is activated. It happens with other themes as well. Not in the same way, but something gets messed up. WP version is 2.3.2 and plugin version is 2.1.2g
Thanks
@Kevin: Just use the plugin. It does exactly what you describe! :)
@Marko: I can’t see the black bar. Can you send me an email to aral at this domain with a screenshot (or, if you can activate it and let me know, I’ll check.)
Aral,
Firstly, thanks for a great plug-in! I have a few questions, why wont my post’s formatting get carried over to my new pages? I post the most recent post on my main page and then [[nnn]] it into my appropriate page, but I lose my original post formatting.
I work hard on my post formatting, and my photos in the posts, why won’t they show up like that in my new pages? I love working with this plugin, I just need my posts to look like they do when I originally write them!
Thanks again Aral, we all appreciate your time!
Great Plugin!! This will be getting reviewed on my site very soon as I think people really need to hear about this one.
@JoNathan: Thanks! Looking forward to reading your review :)
Aral, thanks for this wonderful plugin. I was looking for something like this for a long time.
Firstly,people who were interested in making posts show ONLY on a particular page and NOT on the home-page can use the ShowOnFrontPage plugin. The URL and more instructions can be gathered from http://www.richardgoodwin.com/wp/2005/01/08/new-plugin-showonfrontpage/.
My Wishlist for the Road ahead.
Wishlist
1)All articles posted to a specific designated category get automatically posted in a section.
2) All articles posted to a specific designated category DO NOT get displayed on the home-page (optional)
3) I would also like to see pagination on the page where the Inline posts plugin has been implemented.
4) What one really needs is some kind of a dashboard in the Options area of WordPress so users can tweak the settings according to their requirements.
I am implementing this plugin on my website and would like to come back here for your thoughts and advice.
This is a great plugin in concept. I do, however have some thoughts about how to improve it (which I might work on myself and submit my code to you and/or publish a modified plugin of course giving you full credit (with your permission). The main intent I think here is essentially to have all other pages just like the main page, with their own chronological posts. I don’t want the posts to appear on the main page, which I took your advice and used the UCE plugin for. However, I would like the Recent Posts on the main page to include posts made on other pages which it doesn’t using the IPP/UCE combination. Second modification I would make is rather than have to hard code the post id into the page, modify the template for the manage->posts themselves to include a widget on that page that allows you to choose on which page(s) that you would like the post to appear. E.g., call the widget box “Pages” and list it to the right above Categories by default. Let me know your thoughts. Great job!!
I couldn’t get UCE to work with WP 2.3.2, so I kept looking for other options. I might’ve found something that could work for you, Sean. Check out http://zeo.unic.net.my/notes/exclude-category-in-wordpress/. This uses a function to hide a category and works in WP 2.3.2. BUT it still counts the hidden category on the home page. So, if your “show at most” is set to 10 and you’re hiding 5 categories, only 5 categories will show up. However, the posts to that hidden category do show up in the “recent posts” list.
Thank you Aral for creating the Inline Posts plug-in! It’s perfect for blogs within blogs!
I am using this wonderful plugin for a book review/summary blog within my blog. Since I am rather verbose, those reviews are long and I’d like to use the “more” feature to avoid including the whole posts on the page (see http://www.rabe.org/book-summaries/). Unfortunately, like many others here, I cannot get “more” to work. I gathered from the discussion that this is theme related, so I dug into my theme to try and figure it out. Well, I couldn’t. This is the loop I am using: (let’s see if I can get the code to post…)
< ?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2 id="post-< ?php the_ID(); ?>">< ?php the_title(); ?></h2> < ?php the_content("Continue reading " . the_title('', '', false)); ?> < ?php wp_link_pages(); ?> < ?php edit_post_link(__('Edit'), ' ', ''); ?> < ?php endwhile; endif; ?>I thought that the_content() the way it’s used here allows me to use “more” but it’s not working and I have no clue why. Does anyone have any suggestions?
Thanks so much!
Rachel
Aral: One suggestions about the plug-in – you might want to consider including a footer that’s automatically added to a page that’s using your plug-in that gives you credit… I’ve manually added that to my page…
[Edit: Aral][I just added the code to your post, above, Rachel. Thanks so much for your kind words and for adding the credit line to your blog -- I appreciate it! :)]
Oh, I was afraid the code wouldn’t post right… Let me try again…
<h2 id="post-">
<?php edit_post_link(__('Edit'), '', ''); ?>
I apologize but I am obviously not getting this to work… I am using the code tag… So let me just post the function:
the_content(”Continue reading ” . the_title(”, ”, false));
If you need to see more, please let me know how to post that… Sigh.
Whoa! This is teh total awesomeness!
I didn’t even know this is what I was looking for (I’m kind of code-challenged–mind just don’t work that way) but as soon as I saw your examples, I immediately got an idea for it!
Thanks. What a fortuitous stumble!
Is there a way to get a particular post to show up on a designated page, but not have it show up on the front page (main blog page).
Dov:
Aral suggested to use the Ultimate Category Excluder. I couldn’t get that to work right with WP 2.3.2 (it displayed my oldest posts first instead of the recent ones). So, I resorted to the trick described here. This is far from optimal since it still counts excluded categories. I did a lot of updating on one of my excluded categories yesterday – and ended up with a blank main page!
Rachel
Hi Rachel,
A quick thanks for your valuable input.
Please feel free to email me directly if you want me to post the code you had issues posting on the blog earlier.
thanks a bunch aral! i’m going to reach for a reason to use this, no idea what I plan to do but i’m really excited to use this!!! eiiiiii! thank you again!
Hi Aral
This is just what I need for an IT support site I’m developing. I’m constructing short topics as posts for people to quickly find a specific piece of information and then combining these topics into structured pages with a TOC using this plugin.
One issue I have is that it would be nice to have one post per page by inserting a page break in between. This is easy enough to do manually and works nicely except that the TOC only lists posts embedded in the current page. If it were possible to generate a TOC for all pages that included the page number it would be really great. Not sure if multiple TOC’s are posible, but I’m thinking along the lines of a repeating pattern of [[ TOC ]] [[nnn]]
Wrapping the inline post in a div would also allow for custom formatting of the post if someone wanted to visually indicate that the post is included or wanted to add some extra formatting to the post title to help distinguish between posts.
I’m thinking along the lines of a repeating pattern of
[[ TOC ]] [[nnn]] [page break]
[[ TOC ]] [[nnn]] [page break] etc…
to give a multipage doc with a TOC at the top of each
Aral:
I’m really enjoying being able to embed posts within posts (and pages within pages) on my business site. I think it really helps with the user’s experience and keeps them from having to click around so much. (yes, the site is still in draft because i got caught a little unprepared when i terminated my relationship with my old internet host). For example, being able to provide pricing for my offerings within the offering descriptions is a great enhancement to also just providing straight pricing pages for those who want immediate access to the bottom line.
One thing I noticed, though, is that if you embed a page that has a page embedded already, Inline Posts doesn’t render through the chain of embeds. The place I just noticed this on is at the bottom of:
http://shadowmoon.com/services/weddings/wedding-package-details/
Note the clear-text reference to page #79 just beneath the “Private Event Coverage” secion. Now, in retrospect, on that particular page, I don’t want the pricing information for private event coverage to muddy up the presentation, so I’ll be changing that anyway. But it does show that embeds of embeds don’t work!
I can see programmatically where that embed chain could get messy to render and why it doesn’t necessarily make good sense to do it. I suppose it would also be just as inelegant to comment out the second embed. What do you suggest for these situations?
I’ve noticed that private posts to your blog can be included using this plugin and seen by anyone, should this raise concerns about the general privacy of posts marked private or is it a rather nifty way of skipping the use of UCE? I mean UCE is currently buggy with wordpress 2.3 (with the ComicPress theme) so this works a dream for me, allowing me to make the posts I need without dirtying my actual rants/entries.
More on the more tag problems… Apparently, WordPress does not honor that tag on pages other than the front page. There are suggested work-arounds, the most promising seems to be here. Although I still can’t get it to work in WP 2.3.3. Does anybody have any suggestions?
For your information. I have come across a problem similar to that reported by Marko on January 19, 2008 .
When I activate your plugin, the titles of all posts on my wordpress site are replaced by a black bar.
I am using Wordpress 2.3.2 on Fedora Core8 running the latest XAMPP package. I use the Prosumer theme.
I tested your plugin with other themes and find the problem reported is theme specific. I have not yet had the time to figure out what part of the prosumer code is causing the problem.
Hey Aral!
You’ve got a nice plugin here, I’ve been using it on my site too. Though I’ve got a little problem. Somehow, when I’m using IE or Opera, the page gives a 404 message when I click on the post’s title, and doesn’t show the full post and the comments. I’m including posts that haven’t been published, only drafted and it works fine in Firefox. Is this the plugin’s fault? Could you suggest anything for the problem?
You can check out my page clicking my name and then clicking webdesign on the navigation menu and see the bug for yourself.
Okay so i figured it out. Without logging in as an admin, you can’t read a drafted post in full, it’s not the matter of browsers lol. I don’t want to publish these posts cause they are supposed to be shown on a desired page only not on the blog, but i would like to allow comments. Any suggestions on that? Thanks
Aral,
First great plug-in. Here’s my problem – I’m trying to set it up for a personal hiking journal on my family web site. When I embedd Gallery 2 link code into my post and then link the post using [[20]] on my journal page, Inline is apparently stripping the Gallery 2 code and I’m stuck with just the link number as text on the page.
for example:
823 is the insert to link a photo gallery in a post.
Inline is returning just the “823″ and stripping all the gallery tag stuff out when it formats my page. Any thoughts?
Thanks.
haha it looks like your Inline code just stripped my Gallery code example from my comment :) doh.
let me try again:
(div class=”g2image_float_left”)(wpg2)823(/wpg2)(/div)
After all this time…
I finally found you…
Thanks for the plugin, friend
I’m gonna start using it, but I have to rebuild now
^,^
Wow… I got a tell you once again,
Thank you very much
It runs very well in my WP Version 2.3.3
I really appreciate it
I noticed that inline is adding
tags to every post. This was creating some extra space in my posts, so I changed this line in the file:$content = ''.$content;to this:
$content = ''.$content;Then I made a display: none entry for the class “hidden” in my css file.
Has anyone else noticed this problem?
Arrghh I don’t know how to make the code show up. But what I did was embed a p tag with a class of hidden and an a tag with a name of top before the content part. Don’t forget to close both tags, or the whole page disappears because of the css mod.
Bummer- I actually just had to deactivate it, because it conflicted with the kPicasa plugin.
Jeremy, I’m having the same problem. Happens on all my static pages too, any ideas yet? I originally tried the same thing you did, noticing that it was adding extras. No luck.
Is there a modification or config within this plugin so that the comments and the comments input form can be included with the inline post? We’re trying to create a podcasting site, and want to encourage all visitors to post comments. Generally, people are more likely to post comments when the comments and the comments form is presented. And so, we’d like to have that right on our homepage.
This plugin is exactly what I need and have been looking for.
I know this might be a stupid question but is the Page ID something like example.com/?=4, the defualt setting?
If so, I have Pretty Permalinks and I have no idea what the hell my page ID’s are.
I tried entering [[example.com/sub-example]] but it just comes up as text on the page.
Anyone got any ideas what I’m doing wrong?
Thank you in advance
Using Wordpress 2.5. What the hell is a post id?
Well, whaddya know! It’s at the end of index.php/blah, blah, blah, p=x. Where x= the post ID.
Look at the url that comes up when you edit posts from the manage posts screen. It’s the number at the end.
I must be really weird. In my limited little mind, finding the post ID seems like an important point. Nowhere is the term “post ID” visible.
Cool plug though!
Hi Aral
I downloaded your plugin onto my site and activated it, saved the options, etc. But no matter what I seem to do it doesn’t show. I note that there is conflict in what you say to do, on one page you say to start the post with [[nnn]] nnn being numbers, on another that I looked you say use [[nnnn]] I did try both. Should you also end the post with [[nnn/n]]? or use it just at the beginning?
Should the code look like this : -
[[nnn]]Project blah blah blah
Would be grateful for your assistance. It could be that the Tarski theme which I run on 2.3 might not accept?
Great plugin. I am curious how to elude duplicate content penalties using this plugin. Perhaps its setting up the categories differently but currently, if I inline a page to a page, the original page will display under the “Parent Category” as well as its own page creating duplicate content. Any advice?
So this plugin displays pages within pages/posts
It does not display posts in a page.
If it can, please let me know, thanks! ;]
Hi Aral,
I just noticed that inline posts isn’t interacting well with Galleries in Wordpress 2.5. I think it is picking up the [gallery] tag and getting the images from all posts/pages on the current page. Don’t quote me on that!
@Belinda: by nnn, I mean the numeric post ID (e.g., 123, 54, 1230, etc.)
@Charley: I haven’t tested it with the Galleries plugin (I don’t use it). Ideas for how to work around the issue?
Interesting plugin, thanks for sharing. I’m in sort of a predicament now with my theme and I was wondering if anyone knew the solution to this, maybe there is a plugin out there that I don’t know about.
I want to display on a sidebar, categories only for pages, and recent posts only on post pages. Is that possible?
Thanks,
Roy
Aral, you need to close a tag on your WordPress page (you’ll see when you get here). :-)
@Roy
Umm… if you’re aksing what I think you are it’s insanely simple. Go to WordPress.org and start studying theme template files.
nice work…similar to wiki
Maybe I’m missing something here, but how do I display ONLY one post in a particular area? My home page has mulitple areas where I need to display posts. Below is the code that I have, but it displays all the posts in all the areas. I know I’m doing something blatantly wrong here, but I can’t seem to get it to work.
This plugin is very useful, but generate many errors on validation…
ciao
Livio
I also was wondering if there was a way to hack into your plugin to get the button when writing a post to work. I am completely lovin your plug and have used it on almost every page on my site, but I am pretty long winded when it comes to writing and would love to give my readers a snippet of a longer post, that way they could have several posts on one page to choose from to read.
I have the category excluder plugin and have tried hacking around with that – I was briefly able to change category id’s to post id and my idea was to be able to have a plugin the complete opposite of the advanced category excluder, like a page includer. In hacking around a bit – I was able to get my pages and posts to show up on an admin panel (like the ACE dashboard) where i could check the box next to each post if I wanted that post to show up on that page – but after checking the boxes, nothing happened. It also kept triggering a fatal error in the links of my nav bar – something about the header path, and not being able to replace the header? I don’t know. I thought I might ask if you had any ideas or any desire to look into getting the more tag and the recent post thing working?
(See, I told you I could get long winded ;-)
Hi Aral
Great plugin. Bet you are busy but did you ever think of extending it as a tool to display posts from a specific category only?
The function would take a category number and number of posts and then display them using the content of loop you have already coded.
There some plugins that already do this by category but none display the results as elegantly as your plugin.
Cheers
Matt
Aral,
It seems a superb plugin, however I cant seem to use it as I should. I am a novice on code but I did download it and am using WP 2.5.1. The settings are set to h2 however whenever I enter a new post wanting it to go on a different page it fails and goes on the front page, can you help tell me what I am doing wrong?
Best Regards
Wasim
Hi
It’s a great pluggin, although i do have a problem. The post was posted well on the page i wanted but the post title disapeared. Is there a way i could apear?
Thanks
Thanks for this Aral. It’s great for adding a post that relates to a specific page.
Great work. Thanks for that Aral.
Aral…
great plugin & lovely website… I hope to be in Brighton in September – we can talk musicals!
Have a small issue when using InLine Posts:
When embedding a post in a page, the resulting display includes a date, and links for comments & Top. How can I get rid of these?
An example page is: http://www.renee-rauchalles.com/red07/lesung_aktuell/
whereas the original page is:
http://www.renee-rauchalles.com/red07/lesungen/lesungen-2008/
Thanks
Peter in Munich
Aral!
Discovered I could just ‘out code’ the lines in the coding!
Sometimes things are far easier than expected!
Cheers and thanks
Peter/Paluxus
Mise à jour 2.1.2b vous donne la possibilité de définir le tag que vous voulez utiliser pour afficher les titres de postes. La valeur par défaut est une balise H2.
Hi Aral!
have you tried to use your plugin with qtranslate? because i´m trying and when i publish a post to a specific page i´m having the following problem:
first in the top of the content area is showing a black square and below instead show just the title in the specific language it shows [lang_br]title in portuguese[lnag_br][lang_en]title in english[/lang_en]… any clue?
thanks,
morgan
I am using this plugin on a wp2.5 site with complete success. However, it pulls “pages” rather than “posts” on this new wp2.5.1 site… any suggestions about how to workaround this?
Thanks!!
The work around for wp2.5.1: The hierarchy “includes” pages along with posts. If you have pages as well as posts the pages take priority over posts. If, for example, you have 3 pages and 3 posts the last post may be pulled by using [[6]] rather than [[3]]. (..though it may be [[7]] as [[0]] may pull page#1…)
Thanks again!
Ed
More on the more tag…
I am still trying to get this to work although I think that I am closing in on the problem (I’ve thought this before, so who knows). According to the last comment here, the more tag cannot be forced to work with the get_post function. It can be forced to work with query_posts function, which at least in the theme I am using, has to have at least one argument.
Aral’s wonderful plugin uses get_post on line 90. Could it be that this is why the more functionality doesn’t work? (And believe me, I’ve tried just about everything I could find. This seems to be the most promising approach.). Can anybody get this to work using the query function? If so, could you share what you changed? I am way beyond my hacking capabilities and trial and error just produced strange results…
Thanks!
Hi,
Excuse my ignorance but where do i find the numeric id that you mention, for the post im writing?
Brilliant, I was beginning to pull my hair out but you’ve produced a fantastically simple tool that will make the world of difference to me!
Thanks
@Ronny, Aval, All!
Firstly Aval – good job on this plugin, its priceless, and Ronny, good job on improving an already amazing plugin! – JUST ONE PROBLEM…
im ready to poke myself in the eye with a fork!! – ok this might be a theme issue, but basically I have set up an extra page on my site, which is being treated as a tab, so it seperates a category to a seperate page. Now the only problem is that for example i have 9 posts in that category, but when i select the category in the page – [[cat:nn]] – it only shows me 5 posts. missing 4.
PLEASE help!!!!
Thanks.
Basicly a good plugin, but it is very disturbing that if a blog had a Continue reading, that this isn’t shown and so the blog at the page is very long..
can you fix this..
Thank you for the plugin, somekind of plugin that I’ve been searching for.
I’ll try it first and give my comment about this plugin.
Once again thank you for your hardwork.
I’ve tried it. It works !
Thanks Aral,nice to know you ….
Hope you can inform me if you have other useful plugins for my wordpress homepage.
have a picture how to place [[nnn]] position
i still don know how to use it.i already activate that,but dont know hou to use
please!! if anybody have a picture how to place [[nnn]] in new page,in need that….many times i tryin to use this plugin but still can’t.
i already activate and when i put [[nn]] after write in new page..it show
“Last modified on GMT. 0 comments. Top. Edit topic.”
but i cant edit topic and can’t comment.
please advice me i,how i make my new page like “SWX documentation”
Thank you for the plugin. I use it on my blog after changing the source. Unfortunately it causes in all posts a “” what is no valid HTML, if there are more posts on a page, because id should be unique.
Cheers Helmut
Hi
Great plug-in which we are using on a school community blog we are creating. One thing we can’t do though is get it to display on a static home page excerpts of posts inline rather than the entire content. Does anyone know of a work around. We’d like to use if for excerpts so we can display a variety of content on our front page from categories and other posts within the blog.
super bedava sitem kodları
Hey dude, nice plugin…
Would you be able to add this to the plugin.?
You know when you go to type a new post and below the post there is an option to input tags, right…
Well, what if your plugin created an option below the tags function that allowed you to assign the post to any page you have created. You could archive the post on a different page that is related plus have it show up in the main blog posts, as per normal….
This way you would not have to deal with post counts.
What do you think?
Mike Hill
Hi Aral. Nice plug-in. Unfortunately, I face the same problem that a lot of people seem to have with the more tag not working when posts are inserted into pages.
I notice some people have spent quite a bit of time trying to work around it. If there were a solution, it would be absolutely perfect :)
If there is one in the pipeline, I’m looking very forward to it.
Cheers
Mike
Great plugin, Aral.
Quite simple, but very useful. I use it for a client whose needs to do this kind of posting inside a page/post thing.
But if anyone is looking for some more advanced stuff, take a look ate the query_posts() function at http://codex.wordpress.org/Template_Tags/query_posts , or even the WP_Query class at http://codex.wordpress.org/Function_Reference/WP_Query, this one probably what Aral used in this plugin.
The query_posts() function (or Template Tag as WP Codex refers to) overrides the default query of a page, post or category, being able to get the whole loop of all posts inside a page. I used it in my News page, as I don’t want the front page display all my posts (I made my front page an About Page). The Codex have a very nice documentation about it. Check it out if you need something more advanced.
http://codex.wordpress.org/Template_Tags/query_posts
First of all, thanks for creating this plug-in.
Before it was working but recently just yesterday, all the posts for the existing page where all [[nn]] is located – disappeared.
I was wondering, if there’s an existing bug that affected this. Or if this has happened to anyone. I also updated to Wordpress 2.6 a few weeks ago.
Is there a current update on this plugin for 2.6?
I appreciate the help I can get.
Thanks!
TheA_rtist
http://www.filamartists.com
Hi there.
Great plugin.
Not sure if this is a bug or not but…in my posts I have a ‘more’ break as some can be quite long. When using this plugin in doesn’t use/recognise the ‘more’ break so the whole post is displayed. Can make the page v v v long.
Should it recognise a ‘more’ break? or not? If not, can it?
Thanks
Is there a way to password protect the posts once they’re moved over?
Hi Aral,
I’m trying your great inline post plugin and I was wondering if you did find a way to display the MORE tag for posts that have them? I noticed that other people had asked about this before but haven’t been able to find how to do it. Thank you very much! Taira
Just wanted to say thanks so much for this plugin. It has already saved me so much time. In my website I have several distinct sections, sort of like a collection of mini-sites. I’m using this plugin so that I can just make one page with all the links to each other page within a mini-site, and for the entertainers links, that way, whenever I add new talent, I just have to update a couple pages, rather than all the pages on my site! This is totally awesome!!!
Oh, one thing you might want to add if you ever create updates to this plugin, a way to not display the page/post title. I just made my pages that I’m using with no titles under each section, but that can get confusing.
Thanks Aral for a great plugin! For me, it really makes sense to have a plugin that has an inline category page option. (F.ex “Welcome to my static recipes page! These are my recipes :”, then every post in category “recipe” automatically gets posted to that page) I’ve read through the comments and tried out some of the suggested way to do this, but Wordpress has been through a lot of changes the last few months and I haven’t found a solution that is working still. Downgrading might let me use one of the solutions above, but it’s not really a desirable solution.
I have some understanding of php, but it’s quite basic. Can anyone help me?
Hey I am trying to use your plugin for the news but it adds scroll bars, is there anyway of widening the width or is that to do with my theme rather than the plugin. cheers
Is there a way to have the last or latest post be embedded?
So that the post that is in the page is always the last one that was posted?
I want to remove the “Last Modified..” line completly including “Top” and “Edit” I have commented out “$lastModifiedtext…”, “$commentstext…”, “$topLink…” and “$editLink..” However, I am left with an extra line where they were between the post title and content. This line has two small dots or dashes in it. Any idea how to get rid of them and close up the space between the title and content of the post?
Thanks for any help.
Am I doing it wrong? I put [[23]] before my post on my page and not only does that “[[23]]” show up before the post but it duplicates it? Go to my ride tab and see. I’ll leave it there for now so you can see.
Thanks!
Could these be WP version problems?
I’ve seen a few of them myself.
Aral, your public need you. (Please)
I noticed a bug. After the header with the post title, the next bit with “last edited… 0 comments. top” etc, does not having a closing P tag at the end. This is messing up the display of some posts, with the first line just appending to the end of that administrative line.
test
Thanks for the plugin!
I have one suggestion. I don’t think that the plugin should modify a post unless an inline post tag is present. Let me explain:
I think that insertion of a ‘[[]]’ tag in a post is a statement of intent that the plugin should be active. Leaving out such a tag is also a statement of intent – that the plugin should not do anything.
Since this plugin seems to be advertised as facilitating “local” changes to pages/posts through a special syntax, it makes sense to me that it should not act “globally” (as it does now when inserting ‘top’ elements) when no special tag is present.
One dead-simple way to make this happen is to add a simple condition at the end of the ‘includePosts’ function that checks whether ‘0 < $numMatches’ before modifying the passed ‘$content’. I have made this change on my installation and, while I have no test cases, it seems to work alright.
Again, thanks for the useful plugin!
thanks a lot aralbalkan
InLine Posts is great for letting me organize by page, reserving cagetories
to control ratings script.
However, insertion of was ignored.
How else might I control v-space?
I updated category on a post which was Inline.
Post on page now says “Uncategorized” instead of new cat.
How do I manually fix, or fix plugin?
“{The plugin now removes HTML comments and the linebreak before the initial double bracket so that these don’t cause Wordpress to display additional tags in the output.”
I WANT TO CONTROL V-SPACE. Give me back this ability.
It looks bad for posts to run together. At least one blank line at the bottom would help, but I’d rather have that control.
Hello – I am fairly new to WordPress, but have been using it a lot in the past six weeks. I have been using your inline plug in for all of my posts with no problem until last night.
I wrote a post, published it, and then went to add it to the appropriate page, just as I have been doing regularly. Then when I went to look at the page, all the posts on it were missing. Just the title and “share this” icon were left. I deleted the bracketed post number and the page returned to normal.
I then created a new page, put in the post, and it worked fine.
Is there a limit to how many posts I can add to a page?
I can’t figure this out.
Is there a way to possibly have a category inserted into a page instead of a single post? I would like any posts assigned to a category to post to a particular page.
Inline Posts is a marvelous and extremely useful plugin. Sad to say, however that with the latest version of Wordpress, 2.6.3, Inline Posts breaks the XML feed. I’ve tried every trick and only when Inline Posts is activated is the feed broken.
The website is http://www.principledpolicy.com. The message is “column 0: XML parsing error: :918:0: junk after document element” Line 918 appears to be a table of contents that I’m not using.
Any ideas?
I mentioned a problem earlier about certain posts causing certain pages to go blank. I’m noticing now that the problem posts are one in which I insert graphics. I tried inserting just the graphic into a page between inline posts, and the same thing happened — all the text disappeared. Now I’m even more confused about what’s going wrong here now. It worked okay a few weeks ago. Why not now?
one of the best plugins.. thanks for that!
Hi, I had been trying out your plugin on a page, but didn’t actually use it anymore. However, my wordpress blog would no longer validate and it took me a while to figure out that your plugin was the problem. I don’t know if anyone has pointed it out to you yet (sorry, am not going to read over 160 comments) so:
The plugin adds an id to the first paragraph: Unfortunately it self closes, too. This will cause multiple errors when trying to validate at w3c; problems with the id, problems with the actual closing p tag that is now closing nothing and therefore not valid.
Anyway I hope you can fix it for anyone who uses this and doesn’t understand why wp pages won’t validate ;)
Good luck and keep up the good work!
Oh, yeah, of course it strips the html from this comment.. well.. it adds a top id and a backslash in the p tag.
(sooo soo sorry, I meant slash, please moderate me if you like)
Hi Aral and all,
How can i do if i want only the title (with a link to the post) and the date instead of the complete post ?
I want to use this plugin to insert the related posts after the content of my pages.
Thanks (and sorry for my poor language, i’m french….)
Hi,
I tried the plug in. I am using WP 2.6 and for some reason after i put the plug in on the site – my screen freezes and I can not post.
Any help woudl be appreciated.
So, here’s a question, how do you remove the “Last modified on 2008-11-26 11:38:33 GMT” line, because it’s looking wonky, because it’s covering half of my post’s title, and I don’t understand why?
Thanks for this plug-in! It’s really helpful!
Is there a way to modify it so that only the title of the post is displayed, rather than the entire post itself?
Can you please explain what a post id is where to put it. I cant figure it out! Please put in the instructions.
hi, I may be missing something. I uploaded plugin, activated. When I write a page with [[2166]] i get nothing except [[2166]]. I am trying to make a front page for my site to include top blog or top story. I think i understand this does this. ok what am I missing :D
Chris
Thanks! I’m using slightly self-modified (shows included posts body content only) version of this on my own page now… It’s awesome.
[...] Adding posts to specific pages in a Wordpress blog is made simple by a the Inline Posts Plugin. [...]
[...] In my example, all project-related posts are given the category “Projects”. (I use the Inline Posts Plugin to make sure that all my Projects Posts show up on my Projects Page – Directions on how to do that [...]
[...] is made possible by using 2 plug-ins. The Ultimate Category Excluder and Aral Balkan’s Inline Posts Plugin for wordpress. [...]
if u check this url
http://www.paintonmycanvas.com/articles/
this piugin is not working…. it was fine till december, after then when i switched to wordpress 2.7 – it display this way what you are seeing it.
whats the solution for this
Awesome plugin. I too though really, really, need to figure out how to make the more tag work on the designated page I’m using this plugin. Can anyone answer this please? Again, awesome plugin and I’m using on 2.7 just fine! Thanks, rg.
[...] well, all you guys out there, if you need the same help, refer to this Inline plugin [...]
Excellent plugin! Please (this was asked before by thierry)how can I put only
the title of the post(with a link to the post)instead of the complete post in page?
Thank you very much in advance!
This looks almost perfect for what I need. Is it possible to include multiple posts, all posts, or specific category posts?
Thank you,
Simon
Great job on the plugin! I’ve been using it quite a bit, but have experienced several issues: 1)breaks the W3C validity of the page (really unfortunate!), 2)I’ve figured out how to slightly modify the IP loop to get rid of the .$lastModifiedText.’ ‘.$commentsText.’ but I would love to know how to further modify, because I would like to include the author’s name in the output.
Perhaps in the next version?
Thanks Aral!
Damon
Very helpful plugin! Thanks.
I have one question. Is there a way to keep the inserted post from showing up on the front page and have it only show up on the page I want to insert it in?
Like so many others have already said, Thank You for this plugin. It is very helpful.
And yet, I am not able to use it because it lacks the ability to recognize the ‘more’ tag. If only it could recognizt the more tag, it would be so much more helpful, but as it is, it will not adequately serve its purpose.
I notice you haven’t responded in quite a while. Does this mean the plugin is not being developed further?
It would be nice if more tag were recognized, if validation were fixed.
Nice plugin, but unfornately it is not compatible with xLanguage-plugin (http://hellosam.net/lang/en/project/xlanguage) that I’m currently using.
I want to put a catagory of posts on a page. Can i do that somehow?
Hi Aral, I am a longtime user and fan of your InLine Post Plugin. I recently changed my wp settings to label posts and pages with headline text, a change from the numbered system. Your plugin appears to work only with the id numbers. Is there a way to obtain the id number of the post with the settings on “pretty urls” without needing to switch the settings back and forth? Thanks again for your great work.
Looking forward to hearing back about Jim’s question!
I was hoping to do the same!
Great work already!!
Hi Aral, thanks for the great plugin.
I want you to consider adding this functionality to the admin interface of your plugin (or make page specific options) :
- don’t show post title
- don’t show “last modified”
- don’t show # comments
- don’t show “top”
- don’t show “edit this”
For now I’ve just removed all this from your code, but it’s going to be inconvenient if I wanted to let the plugin auto-update itself in the future!
Thanks again.
Hi Aral,
thank you for this wonderful plugin!
I’ve got a problem:
I’m using the More Fields plugin ( http://wordpress.org/extend/plugins/more-fields/ ), but if I include a post in another, the custom fields don’t appear!! what can I do to fix it? :(
I MUST use that plugin… :(
Thank you,
Angie
Hi, I commented a while back about a similar plugin I created inspired on yours: CompositePost. I rewrote the plugin now. Would like it if you could check it out: http://rutkoski.wordpress.com/2009/02/09/compositepost-wordpress-plugin/. Thanks
hey aral!
thanks for this plugin. i’m completely new to this whole wordpress thing and have been tinkering with various things, and i just want to make sure i’m using this plug in correctly.
on my reviews page on the menu tab in the header, i want to create a list of reviews of bars in the neighborhood.
i have an additional plugin that creates a review-like template.
now the only thing is i want to make the reviews page work.
how do i use your plugin and make this work. i’ve installed everything, but just want to be sure.
sorry for being a newbie, i just need to know how to just include these reivews in my reviews page, and for them not to appear anywhere else.
help!
thanks-
darren
I was just investigating a problem with a site, where there was a malformed
tag (specifically,), and it turned out to be Inline Posts that was causing it.Line 146 of the plugin file needs changing from
$content = ''.$content;to$content = ''.$content;.- Tim
Hmm, problem with code in that comment.
I’ll try again, with just a description this time: On line 146 of inlineposts.php, the paragraph tag self-closes, which it shouldn’t do.
- Tim
[...] afficher dans cette page mère le contenu d’une page fille. . Nous avons trouvé le plugin inline posts qui offre cette fonctionnalité. En écrivant [[POST_ID]] à l’intérieur de votre page, le [...]
I’ve found that changing my host to use PHP 5, which is required for full functionality of WP 2.7, breaks InLine Posts. Has anyone found a workaround to this, or an alternative plugin since this one is apparently no longer supported?
Hi. Think this is what iam after want to add posts to a page, but the post that I am adding I do not want it to appear on my homepage, just the new page created….Will this plugin let me do this???
Apparently, people want the Category use, but there have been no viable solutions. It seems Aral may have abandoned this whole thing as his last comment was in #113 on March 1, 2008.
Has anyone found any solutions yet for 2.7.1?
None of the options I have found are as robust as this option, but categories would be sweet.
[...] to do what I want, even though I have limited knowledge of WordPress and programming. Go visit Aral Balkin’s Inline post Plugin page. You will be glad you found it. Tags: Inline Post Plugin, static page Categories: [...]
Hey. A man can do all things if he but wills them.
I am from Hungary and learning to write in English, give please true I wrote the following sentence: “American airlines offers discount airfares and cheap airline tickets to the usa all year round.”
With respect ;-), Opa.
I like this plugin. I would like to change one thing. Does anyone know how to take the date stamp, and published by….out of this plugin. I would like to be able to keep comments open but would rather not have the date stamp and published by in it. I apologize for asking such a simple question but I am very new to all of this. Any help would be appreciated.
Hi,
Can you tell me where I look for the Post ID of a Post on Wordpress. I am very new to all of this and have just uploaded your Inline Posts Plugin for WP
Thank you
Sofie
[...] out a wonderful pluggin that pulls a post into a page. This one is called Inline Post by Aral Balkanm.,I was actually searching a utility like this since I started working on wordpress. However this [...]
Aral thanks for this nice plugin and i added two functioanality to it. I now you gave permission to develop it (like Ronny’s message), i complated 1st stage and i want to share with others..
Actually i don’t now PHP enough, but i am trying to learn and i am using this plugin so i wanted to make it better, so i’ve complated first update (v 2.2.0), with this update you can localize Inline Post plugin and you can excerpt it (e.g. let only first 250 character will be seen for each posts) and you can define this value from Options page. But there is a little problem here: When you excerpt your posts (it does’t take title of posts into acoount) it cuts the code part, i mean for example your 195. character of post is <a href=”http:/….. then it cuts from f of href and <a hre will be seen in the end of your post.
In Addition: When you excerpt your posts then an extra ‘See All…’ mesage will be shown with link to post…
I wish you’ll like it.
Best regards to All…
link: http://www.anfyazilim.com/programlar/Inline Posts v2.2.0.zip
I would love to be able to have the choice to include the full post or just an excerpt (like Alper, above mentioned). Maybe in the future when you get some extra time?
In response to BillBob:
“I like this plugin. I would like to change one thing. Does anyone know how to take the date stamp, and published by….out of this plugin. I would like to be able to keep comments open but would rather not have the date stamp and published by in it. I apologize for asking such a simple question but I am very new to all of this. Any help would be appreciated.”
Take the line of code out of the .php file that reads:
$lastModifiedText = ‘Last modified on ‘.$post->post_modified_gmt.’ GMT.’;
also, take out ‘.$lastModifiedText.’
Hello Aral,
I’m using your plug-in for creating a blog on my website, it works great! In the beginning I posted an image (max 25kb) with every post day by day. After doing this for 5-6 weeks, the page went blank. After moving the oldest week in an archieve, it was solved.
After a crash, I stopped (temporarily) with these images and found out that now I can add more than 6 weeks per page. Is there a possibility for changing this option so I can add pictures without limitatons? Or do I have to search wihin Wordpress?
Thanks, Dennis
شات
Thanks for this plugin works great. I had one question if anyone can help out. I was wondering if i could use this plugin to update a page with the latest post on my blog. So instead of just typing in a post number, it would dynamically update with whatever my last entry was?
Anyone?
First of all, thanks for this fantastic plug-in: it is a kind of christmas gift. But i have a problem. I would like the inline post have the same apparence of a ordinary post, with the same footer. But instead, the post’s informations that appears in the footer, in the inline footer appears at the top, and the footer is the footer of the page. Is there any way the inline post have the same look of a ordinary post, exactly the same?
assadsf
sdfdsgg
adsf
dsfsdfg
asfsf
asfdsafg
asdsaf
dsfadg
I need you to know I cried when I found this plug in. I had found it on the fly 4 days away. I had some theme issues and uninstalled WP. Loosing the link. It took me 3 days of none stop searching to find it again. Without it the entire concept of the blog was gone THANKS!!!!!
It works well on the new 2.8 too. Thanks so much!!!
[...] he felt like there should be posts on pages if you have more than one. You can download the plugin here. He also included other plugins like Category Exclusion so users can have control where posts [...]
Mike T,
I tried it on wordpress 2.8 and it’s saying page not found, any idea why? I didn’t publish the page because I am testing online immediately but after I installed the plugin, activate it, created a new page and then i did this:
[[xxxx]] where xxxx is the post ID. I got the post ID by clicking on a post and it shows p=xxxx
is there anything wrong with what i am doing?
Thanks
[...] ה פלגין inline ניתן להטמיע post/page בתוך post/page. זה נח אם רוצים להציג [...]
[...] to enlighten me, if you have the knowledge. I will however edit the InlinePosts plugin, written by Aran Balkan so that it will simply inline all posts in a specific category. The beginning perl posts will [...]
[...] Posts. If you have pages in which you want to include posts, you can use Inline Post Plugin for WordPress. This is useful if you often write pages or formal posts which you want to compliment with more [...]
Any chance that we can get an Idiot’s Guide please? I notice a lot of people new to WordPress and coding in general are pretty much being ignored when they ask for help.
I’m also extremely new to it, and I’m trying to read up as much as possible, but I’m lost in the sea of documents. I’ve installed the plugin but I don’t know where to find the post id or where to include [[ID]]. Can anyone help?
So I found out how to find post id, where the post ID goes and how it works. I created a new post: wrote my text; added [[446]] after the text.
What this did was put all of the text from page 446 onto the front page as a new blog post. Also, when I went to page 446, there was no new post – only the post that was there before.
So, I went to edit Page and added new text to the top of the page and added [[446]]. What this did was duplicate the new text on the page.
Firstly, there was the new text, but [[446]] was also showing on the page.
Secondly, the text was repeated as a separate post on the page but without [[446]].
I don’t want to edit the page in this way, because it means adding the text to the original text in the edit window. Rather messy.
What I wanted to do was:
1. Create new post – i.e. like you do when posting to your blog.
2. Automatically post the new post to page 446.
Any ideas?
[...] link: Aral Balkan – Inline Posts Plugin for Wordpress Comments0 Leave a Reply Click here to cancel [...]
teşekkür ederim hocam:)
Hello Aral-
Thank you for creating an extremely useful plug-in!
I am only having one little problem:
I have a 3 column float and
for some reason inline posts plug in messes up my right column
called #sidebar.secondary
It makes my right column jump up about 6 pixels in
firefox 2 (pc)
IE8 (pc)
firefox 2 (mac)
firefox 3 (mac)
Opera
Safari
Weirdly, it is fine in:
IE6
IE7
I took a look over the .php page for the plug-in but nothing stood out except that one of my main divs is called content….
Thank you!!
Hi,
How do you get rid of the timestamps showing when the post was last modified? Thanks.
This plugin is a miracle!
Thanks Aral :)
Aral,
How do i remove (or at least rename) the Sub-Navigation menu that appeared in my side bar when i installed your plugin?
check it out here – http://mirandavidak.com/?page_id=565
re Inline Posts Plugin for Wordpress, ver 2.8.4
“And, since pages are really just posts (confused yet?), you can use the Page ID to include a page in a post or a page in another page too if you really feel like that will make your life better.”
%postname%/%post_id%/ numbers posts, not pages
so how can you make a page appear in a post — other than by copy?
I think that Erio already asked this question, but is it possible to have this function dynamically, ie, have all the posts from one category posted on a specific page? Thanks man.
Hi Aral,
I can confirm this plug-in also works with 2.8.4. One minor issue I have not sorted out yet is translation of the theme. Seperate posts ARE translated in the theme (not the content, but the theme stuff). Inline posts show the theme-stuff in english (default language). Is this a bug or does your plugin also require some sort of language setting?
I love the concept of in-line posts. This way you can organise/control your webstructure by using pages and subpages, yet fill them with content from your posts.
Thanks for putting such a valuable tool into the public.
Thanks a lot! This really helps me to expand my website to the next level.
The mission of The Thank You Foundation is to show appreciation and express
gratitude for members of the U.S. Military both past and present
wedding songs زفات – موقع زفات – زفات بدون موسيقى – زفات بالاسماء – زفات راشد الماجد – زفات حزين الجسمي
No luck trying your plugin – got this:
Unpacking the package.
Incompatible archive PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
Love it to work…
I’ve always thought you should be able to include posts in your static pages. Thanks for the plug-in, much simpler than hand coding a solution every time I put a new blog up. No issues on my end.
[...] therefore to achieve we are talking about is little difficult. So to solve this problem we have a plugin which allows you to include in posts in pages using post [...]
Looks really cool. This had me curious at first and kinda stumped on why you would want to use it, but I think I can see a few reasons why I might really like it… I’ve got a feeling that could use this on a current project ;)
Thanks!
I see that an often request is to not show the Title, Last modified and Comment-link.
The easiest way to do this, and to do it clean is to change line 120 in the plugin’s php file and edit it to:
$text = $postBodyText;
//$text = $postTitleText.''.$lastModifiedText.' '.$commentsText.'. '.$editLink."".$postBodyText;
$text = $postBodyText;
For some reason, in my categories list, every post is shown, rather than just the ones assigned to that category. I am new to wordpress, and I am wondering if this has something to do with the inline plugin?
For some reason the Plugin doesn’t work when I use PHP 5 in my server.
I have a page with a long list of inline posts and the MAX number of inline supported when using PHP 5 is 57.
I disabled PHP5 and is working fine. Other than that METZUIAN! :-)
Any idea?
Thanks for this useful plugin. But it does not work with WP 2.8.5 How can we fix it.
I’m running WP 2.8.5 on a WIMP server and everything works well with the exception of this plugin. For some reason the front page goes blank after activating it. For kicks I changed the permissions on this folder but this issue remains. I’m reading through the comments and wanted to know if I missed something?
Any responses appreciated.
Hi Aral where can I find the id of a post, what does it look like?
Kind regards,
Danny
Thanks for sharing~
Thank you Aral! You created a plugin that should be a standard WP feature, don’t you think? Glad you get to be the creator, because it will lead people to you who will help with your other excellent projects.
Dear Aral,
I wanted to use yourgreat plugin, its ideal for what i had in mind..
But although it is working, it is somehow showing the header of my template again on top of the included post…
http://www.campingdestriene.nl/website/contact
This is the url, can you please have a look, or someone else and help me to fix this problem…
Thanks in advance,
Daan
Solved!
The plugin points to “Top” which is already used in my CSS for the header.
Made: Class=”Top3″
Thanks for the plugin!!
Daan
Hi there Aral,
Cool plugin; I have however a doubt.
Could it be possible to show only the title of the posts, instead of the whole posts?
Thanks in advance
I wish someone, anyone would fix the “more” tag.
Some very interesting and insightful thoughts. I like this.^_^ because I have a blog about gifts too.
Hiya,
I have 4 pages in addition to the home and about pages. I’d like to create blog posts that I assign to those specific pages (so the posts DON’T show up on home page but on those pages) Does your plug in handle that?
Hello, this plugin is unique would be great if it could be updated to work with wordpress 2.9 thanks !
LOVE THIS PLUGIN! Man – I googled for EVER for something like this – a buddy told me about it – WELL DONE!
hello i just switched over to wordpress to conduct my website and online magazine. i really want to be able to multiple posts on my static pages i was looking for your inline posts plugin and i cant not find it. can you direct me to another plugin or a way to do this.
“We recently featured your plugin on our website wpcandy.com and a person named Jai commented about on the fact that if you have a post that has the MORE tag in it, when using your plugin to put the post on another page it does not display the MORE tag.
I thought this was a very good find and perhaps in later versions there maybe a fix for this or an option to include the MORE tag or not.
Thanks Michael.”
did you solve it?;;)?
Hey! Great plugin.. any plans to ever do another update on it or are you leaving it as is?
Question from a paypal rookie: where do I find the post IDs?
Hi,
I just activated your plug in today, and when I did, I noticed it put in some extra lines of space between the title and pictures in my top 4 posts? When I deactivate the inline posts plug-in, the space disappears and the posts look normal again? Any ideas what might be causing this? Thanks.
Jamie
Is there a way to show the comments under the post rather than as a link above the post?