Inline Posts en Categorieën (Powered by Aral Balkan)
Published by Ronny on September 24th, 2007 in Open-source, Wordpress, plugins. 34 CommentsIk heb onlangs een testproject gestart dat waarschijnlijk binnen enkele weken mijn nieuwe site moet gaan voorstellen. Hiervoor had ik een optie nodig waardoor ik een pagina kon aanmaken waar ik meerdere posts in kon samenrapen, door middel van een centrale ‘tag’ zeg maar.
Spontaan dacht ik aan categorieën, maar dan krijg je meteen die vervelende ‘/category/’ in je URL. Dat vond ik niet bepaald aantrekkelijk. Verder wou ik zelf ook nog wat tekst als inleiding op de inhoud erbij hebben. Dat kan je niet doen via de WP-Admin (wat voor mij juist belangrijk is om redenen als useability).
Ik ging dus 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.
Het leuke is dat de plugin nog altijd zoals ervoor werkt, en hij nu ook categorieën kan includen in één en dezelfde post of pagina!
Alle gekheid op een stokje kan deze plugin nu de meest zeldzame combinaties in 1 post of pagina aan:
- Meerdere posts in 1 post of pagina
- Een categorie van posts in een post of pagina
- Een post en een categorie van posts in een post of pagina
- Meerdere categorieën in een posts of pagina
- Zo kan ik wel nog even doorgaan
Thanks to Aral for providing me with the initial step I needed to make this work!
Download:
Installatie:
- Upload het bestand InlinePostsAndCategories.php naar je wordpress/wp-content/plugins/ map
- Ga naar je plugin manager in je Wordpress administratie en activeer de plugin.
- Klaar!
Gebruik:
- Include een post als volgt:
Hier volgt een included post [[ 40 ]] - Include een categorie als volgt:
Hier volgt een included categorie [[ cat:14 ]]
In English for the non-Dutch people
:
Download:
Installation:
- Upload the InlinePostsAndCategories.php file to your wordpress/wp-content/plugins/ folder.
- Go to the plugin manager in your Wordpress administration and activate the plugin.
- You’re good to go!
Usage:
- Include a post:
Here follows an included post! [[ 40 ]] - Include a category:
Here follows an included category! [[ cat:14 ]]
Veel plezier / Have fun!!
Posts that somehow relate to this one:
- Mijn eigen Code Highlighter plugin voor WordPress – (1276 views)
- Twitter-badge update – (993 views)
- bbCode-like Syntax Highlighter V0.1 – (1413 views)
- MakeTheBunnyTalk in de Wordpress Plugin Directory – (1030 views)
- Blog updated – (932 views)
Freedom of speech!
Whatever it is you feel: Tell me! It's for free!


popular opinion
34 others felt like sharing their feelings about this. Feel free to do so as well.
Mark Pagliaro @ 1:11 - October 17th, 2007
The posting all of category works good. However the page I am using it with will only display’s the last 5 of the category can I change that to unlimited? As my intended use is to display all.
Ronny @ 1:33 - October 17th, 2007
Sure you can. I haven’t tried with more than 3 posts so I can’t tell if it would work or not with more than 5 posts. Feel free to alter it, and let me know how it turned out. I will list it here as well!
Mark Pagliaro @ 1:49 - October 17th, 2007
Where is the limit defined? I can’t seem to trace it. If you haven’t defined a limit I guess this is a perk I would have to live with and then post the rest of the Id’s Manually using the post functions. I tried other plug ins to increase the limits to no avail.
Ronny @ 2:04 - October 17th, 2007
I am not really familiar with Wordpress functions, but my best guess is that the getPostFromCategory() function is set to a max of 5 posts. I’ll look into it, and let you know what pops up.
Mark Pagliaro @ 23:00 - October 17th, 2007
Well I am sort of on my way to getting this. Basically I have edited one line but it returns posts from every category. It does however return all posts.
Mark Pagliaro @ 23:26 - October 17th, 2007
Well it turns out I did solve my problem it was a simple edit of
(Previously)
line 168 $allCatPosts=get_posts(‘category=’.$matches[0][$i]);
(Edit to show all content in category)
$allCatPosts=get_posts(‘numberposts=-1&category=’.$matches[0][$i]);
Thank you for editing the intial inline posts plug-in as I doubt I would have been able to edit it myself.
Ronny @ 15:49 - October 24th, 2007
Good job!
I’ll post the update later on right here!
Thanks for letting me know how you solved this.
Dragon @ 17:39 - December 27th, 2007
Hey,
Is het ook mogelijk om het automatisch de laatste 2 post te laten weergeven in een pagina?
Voorbeeld:
Ik heb een home en een subpagina. Op de home staat alleen een paar post. Maar op de subpagina (beheerd door author x) word alleen de laatste 2 post die door author x gepost zijn weergeven.
Want ik heb verschillende subpagina’s en al deze pagina’s worden door verschillende authors beheerd. Vandaar dat ik dit vraag. Thnx
Ronny @ 17:09 - December 28th, 2007
zou perfect mogelijk moeten zijn.
Aarzel niet om zelf het PHP bestand te wijzigen naar je eigen wensen. Zolang je er de vermeldingen van Aral Balkan (de originele auteur van de plugin) en mij in laat zie ik alle wijzigingen tegemoet. Laat zeker even zien wat je ervan gemaakt hebt, ik zal er met veel plezier naar linken!
WILFREDENELKE.NL » link @ 8:33 - January 24th, 2008
[...] http://nocreativity.com/blog/inline-posts-en-categorieen-powered-by-aral-balkan [...]
kamal @ 16:25 - December 2nd, 2008
thanks for providing the cat option,
please how can i remove the title and (Last modified on 2008-12-02 13:53:13 GMT. 0 comments. Top.)
thanks for help
Ronny @ 16:29 - December 2nd, 2008
I don’t excatly understand what you’re referring to. If you could show it to me on a screenshot, I’d be happy to help you out.
kamal @ 18:32 - December 2nd, 2008
Thanks for ur reply, this is the screenshot:
http://img401.imageshack.us/my.php?image=screenxv5.jpg
i’d like to remove the title and the info over the red frame.
Thanks
Ronny @ 19:21 - December 2nd, 2008
If I had the time right now, I’ld look into it, but I’m afraid school is keeping me too busy right now.
However solving this should be easy. Take a look in the PHP source. There are some lines dedicated to marking up this information. Just commenting them out should do the trick.
kamal @ 19:44 - December 2nd, 2008
i do removing some, but i have allways errors… so i hop u’ll be free, The school it’s the first.
see you
Matt @ 1:43 - December 9th, 2008
Ronny,
Is there a way to limit the size of each post in the category once you use your tool? I was hoping that when using this tool that it would create a “continue reading” link for each of the posts in the category.
Thanks for your help
rolando @ 5:16 - January 5th, 2009
How do we make the “more” tag work here so you get the “read more” link? This works great, except I don’t want the entire post showing on that special page, only on the post/page itself. Thanks, Rolando
Wordpress Solution Found @ 4:38 - February 7th, 2009
[...] took me HOURS to find this wordpress plugin. sheesh! But I think it’ll be perfect for the SVHE site IF we decided to redesign it with [...]
Paul @ 15:57 - February 28th, 2009
Ey Ronny!
Ten eerste even: super plugin! precies waar ik naar op zoek was:)
Ik zit alleen nog even met een klein probleemje, de posts worden niet goed weergegeven. Wil graag het posts format gebruiken van mn .css file.
Gaat om de margin-bottom(uit css file):
.post {
margin-bottom: 100px;
font-size: 11px;
}
Enig idee hoe ik dit kan aanroepen/verwerken in de inlineposts.php file? Kan me niet voorstellen dat het heel moeilijk is, maar ik krijg het nog niet voor elkaar…
David Rogers @ 20:58 - March 25th, 2009
I am stuck on how to exactly enter the code?
I have tried the Brackets [[]]
The only problem is that i am using SEF urls? ( So I can enter cat:2 )
Can someone out there please show me exactly how the code looks when entering it on the page itself??
Thanks
David
Alper @ 3:57 - April 14th, 2009
ARAL BALKAN+RONNY+MARK PAGLIARO = PERFECT
Thank you all…
Alper @ 4:59 - April 14th, 2009
DAVID:
try [[cat:2]] into HTML format because sometimes
tags can be effect to defect codes.. And i think SEF url does not effect to Category IDs (Just idea
)..Kaustubh @ 10:57 - April 17th, 2009
hey thanks a ton….
can you tell me how to show only excerpts and not the complete posts using your pluggin.
do i need to modify the code
Wordpress Pluggin to pull Posts and Category in a page | Kaustubh Verma @ 11:15 - April 17th, 2009
[...] to open source, I got another one by Ronny which pulls out a post as well as the post from a particular category on a page. Thanks to both of [...]
Alper @ 3:51 - April 20th, 2009
Hi all, actually i don’t now PHP enough, but i am trying to learn and i am using this plugin and 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
Azmeer @ 13:02 - May 8th, 2009
Thank you for the plug-in. I just wondering how about giving the option to include a “” tag to separate the posts? Also this doesn’t process tag ?
Azmeer @ 13:03 - May 8th, 2009
Thank you for the plug-in. I just wondering how about giving the option to include a
""tag to separate the posts? Also this doesn’t processtag ?Elena @ 14:41 - May 23rd, 2009
Just what I needed! Thanks!
Saved me a lot of time
Christoph @ 22:26 - July 12th, 2009
We are using your plugin on our site and for some reason it only displays 5 posts even though there should be 11.
Any idea what could be the reason for this?
http://werktage.org/programm/vortraege/
http://werktage.org/category/vortrag/
Christoph @ 16:08 - July 13th, 2009
we had to drop the script, because we are a bit in a hurry. if you still should have an idea, we would be happy about a solution.
cheers
Christoph
Uncensored Newsgroups @ 22:32 - September 22nd, 2009
Thank you so much for editing Aral Balkan’s plugin.
I’ve searched for ages to find a inline category plugin!!!
Colin Wheeler @ 0:56 - March 8th, 2010
Thank you for this – took me over two hours to track this down!
Great work from all the contributers!
tom @ 8:38 - May 17th, 2010
I am entering the proper syntax and the proper category ID, but this is displaying posts from all categories, not just the one I specified. Any ideas what would cause that?
Customising display of categories in Wordpress | yfenni.net @ 17:12 - September 2nd, 2010
[...] In the past the general rule was that for pages that did not change or were not time dependent would be posted as a page in WordPress while posts were used for much more topical pages that may have a limited lifetime. With freshness now playing a bigger role in search engine results being able to combine both pages and posts can help keep your entire web site fresher. The plugin I like for this feature is not currently available through your dashboard plugin section of WordPress, you have to go to the developers website to download it. The plugin is an adapted version of InlinePosts which has been adapted to also allow category integration. You can get the Inline Posts and Category plugin here. [...]