Featured articles gives the wordpress blog admin the possibility to display posts in a slick n cool way on the home page, just above the first post from the loop. It’s developed for Wordpress 2.7.1 with the help of MooTools 1.2, probably the best JavaScript framework around ( please don’t try to argue on this on the comments ).
From the available plugin options I’ll mention the possibility to display any number of posts you feel comfortable with, the order in which they will appear ( newest, oldest or random ) and thumbnail display. Since I remembered the thumbnail, some explaining on it. The thumbnail represents the first image encountered in each separate post. If none available, none displayed.
For further settings on display options, there’s the JavaScript class. The script itself resides inside the script folder of the plugin directory. For this you can set timings between slides, whether to show numbered paging or not, how the slides will slide ( left or top ) and other.
Installation
To install this plugin, download and extract it somewhere on your computer and upload the whole wp_featured_articles folder on your Wordpress blog plugin folder ( path_to_blog/wp_content/plugins/ ). After that, in your wp admin panel, go to Plugins and activate it. That’s all there is to it.
Configuring the plugin
If you want to change the default settings, go to your admin page and find Settings menu. In it, you should have a link called Featured Articles. It’s the link pointing to the plugin settings page. In this page, you can set the following:
- Set title for the section. The title will appear above the slides
- Display the title you set above ( maybe you change you mind, who knows )
- Truncate descriptions with thumbnail to a number of characters
- Truncate descriptions without thumbnail to a different number of characters; this setting will apply if you choose not to display thumbnails at all
- Number of articles to be displayed
- Display order ( newest, oldest or random )
- Display thumbnail if any is found
- Thumbnail max size – this setting works in conjunction with thumbnails you set using post’s custom fields ( more on this below )
- Unload MooTools framework – you have the option to make this script not to unload the MooTools framework needed for functioning. You would normally do this if there’s another plugin using mootools and it loads the framework before this one does.
- Display posts from categorie(s) – this setting allows you to display only posts from specific categories
- Display on – you can choose to display the plugin only on certain pages or category pages
Further more, there is an extra option available when you edit a post. For displaying images for featured articles, this plugin does one of the two things ( in the order below ):
1. it searches to see if a custom field named fa_image has been set OR
2. it searches an image into the post content
Second option is pretty straight forward. If there is an image inside your post, it will display that one. If more than one image is set inside your post content, the first one will be displayed.
For the first option, to make it simpler to set a custom field without having to type anything, when you edit a post, you should see an icon looking like this
above the editor. If you click that icon, a modal window will open displaying all images you have in your Media Library and by simply clicking one of them, the custom field will be automatically set.
Regarding this option, in plugin’s settings page, you can set the thumbnail maximum size ( width and height ) for these custom field thumbnails for the slider to display.
Change behavior
Behavior is managed by JavaScript. To change, for example, the number of seconds to display a certain article before the next one comes or the entry point ( it can slide it from top or from left ), you need to edit a file.
To do that, simply open the file containing the script with an editor and change the values of the class instance located at the bottom of the file to the ones you need. Complete path to this file is: your_wp_blog_path/wp-content/plugins/wp_featured_articles/scripts/FeaturedArticles.js.
The class instance inside the JavaScript file is the one below:
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | window.addEvent('domready', function(){ new FeaturedArticles({ container: 'FA_featured_articles', slides: '.FA_article', slideDuration:5000, effectDuration:1000, fadeDist:600, fadePosition:'left', stopSlideOnClick: false, autoSlide: true, infoContainers: '.FA_info', visibleInfo: false, navigationHeight: 21, navigationNums: false }); }) |
As you can see there are a number of parameters that you can play with in here. Here’s a brief explanation for each one:
- container: this is the id of the div containing the slides with the articles content
- slides: CSS class for the slides ( add it as .someClass if you change the CSS class )
- slideDuration: timing between slides in milliseconds
- effectDuration: slide fade effect duration
- fadeDist: the top/left distance to which the slides will fade to. To have the slides only fade without moving, set this to 0
- fadePosition: this can be left or top
- stopSlideOnClick: when you click on the navigation links below the slides, you have the possibility to stop the auto slide feature
- autoSlide: on page load, the slides will auto slide or not according to this variabile
- infoContainers: inside each slide, there’s a div containing info about the post ( comments, permalink, date posted ). Pass the CSS class to this parameter so that it can create the effect
- visibleInfo: by default, the info inside infoContainers is set to invisible. When you put your mouse over the slide, the info appears. This parameter gives the possibility to display that info on page load so that the user can see it’s there
- navigationHeight: the navigation div below the slides gets added by JavaScript. Inside the stylesheet you have the possibility to style the div containing the links and you should give it a height. That height needs to be added as a parameter. Please note that this parameter does not control the height of the div containing the navigation links.
- navigationNums: navigation links can be displayed in a numeric fashion ( 1..2…6 ). If you don’t need that, set it to false.
It this interests you, here are the MooTools components used by this plugin:
MooTools Core
- Core – all
- Native – all
- Class – all
- Element – all
- Utilities – Selectors, DomReady
- Fx – Fx, Fx.CSS, Fx.Morph
Change appearance
Appearance is managed by CSS. To change the way the Featured Articles slider looks, you need to open with an editor the file located at: your_wp_blog_path/wp-content/plugins/wp_featured_articles/styles/stylesheet.css
In here, you’ll find a number of CSS declarations. I’ll try to detail a bit how to change the slider size.
On line 26 in stylesheet.css, is the #FA_featured_articles container. A bit lower, on line 35, the slides are styled. Basically, both the container ( #FA_featured_articles container ) and the slides should have the same size because of overflow:hidden set on #FA_featured_articles.
I really hope you enjoy this plugin. Let me know in the comments if there are any bugs left. Don’t forget, for JavaScript bugs to mention the browser you encountered the bug in and the browser version.
Updates
August 13th 2009 – new admin options
- new option that allows choosing the categories to display articles from ( thanks to Martin Granger for suggesting this )
- new option that allows plugin display in multiple pages and/or categories and front page. Remember to go to your wp admin->Settings->Featured articles and set these new options.
January 20th 2010 – custom fields thumbnail
- new option that allows for each post featured to set other image than the one in post by using custom fields. Key for custom field is fa_image. You can set this custom field in 2 ways:
- manual, by adding as value for the custom fields an image URL located remotely
- by setting a media gallery image. When editing a post that’s featured, you’ll notice a new icon (
) above the editor. When you click this, it will open a page displaying all images from your media library and you can choose the image to use as custom field. Also, for this, in plugin setup page ( Settings->Featured Articles ) there’s the possibility to set the image size you want to use. WP will closely match the size and return the image. As a suggestion, upload the exact size you want to use and set the size to that one.
- new option to enable/disable MooTools framework script inclusion in head. This helps troubleshooting any script conflicts or in case another plugins adds the framework before this one.
March 17th 2010
- updated MooTools to version 1.2.4 and only the components needed by this plugin ( see above what MooTools libs get used by the script )
After updating the plugin, remember to go to wp-admin->Settings->Featured Articles and update your options.






184 comments
THANKS – Great Job! Works fine with WP 2.8!
The plugin works very well
Just what I was searching for, and easy to configure !
Many thanks
what if you want to directly insert the call into a theme? Meaning, I don’t fancy the default placement…how can one explicitly include it in the theme?
Currently that’s not possible. In a future update I’ll try to implement that too. Can’t say for sure when that update will come. Sorry for this.
About James’s comment: I’ve got this new theme that just won’t let the plugin show up. I’m talking about the Design Disease free tipz.com theme. I installed the plugin, but it just won’t appear anywhere. If i change the theme the plugin works. So there’s no possible way of fixing this?
Hi Ariel,
Sorry for leaving you like this for so long. I haven’t had the time to look at the issues regarding this plugin and the theme you mentioned. I’ll do my best to do that but can’t tell for sure when that will happen. Meanwhile, if you figure it out, please let us know so other people would be aware of this. Thanks.
Later edit
The plugin uses as hook wp’s loop_start. For some reason this doesn’t work with this theme but I managed to output the slider’s content by using the function directly in header.php. So try adding < ?php wp_featured_articles();?> in your header.php file and it should work. Please note that I haven’t tested this very well, so first test locally and see what happens.
Hello Constantin,
I really like your Scripts but am not using WP.
Is it possible, that you release the pure JS with a small example so I can use it on my pages and maybe create an extension for the WebCMS TYPOlight to use it there?
Thanx,
Felix
BTW: Happy X-mas
Happy Christmas to you too Felix
Yes, it’s possible, I’ll try to do that one of these days.
Later edit
Try this: WP Featured Articles js only
Hi Constantin,
thanx for that, great script.
So if you don’t mind, I would create an extension for TYPOlight. I’ll mention, where I got the script, so you get your credit.
Bye, Felix
No problem Felix, as long as you keep the credit info in js and mention the source, everything’s fine. I would really love to see the result when you’re done.
[...] article with all sources is here. Have fun. [...]
You said “Complete path to this file is: your_wp_blog_path/wp-content/plugins/wp_featured_articles/scripts/FeaturedArticles.js. ”
Now how will I get that path in the plugins directory.Do I need to create a new folder named wp_featured_articles/scripts or do I need to upload some thing else from somewhere.Can you make it a bit more clear to the new bies
Hi John,
After you install the plugin ( download the zip file, extract it and upload the folder wp_featured_articles to your blog plugin directory and activate the plugin ), you can set 2 things:
1. In wp-admin->Settings->Featured Articles you can set a number of options
2. If you want to change the way the JavaScript works, there are a number of parameters you can set. This file is located in wp_featured_artiles/script/FeaturedArticles.js. If you open this file, at the bottom you’ll notice the class instance. Change any parameters you need, hit save and see the changes.
So to answer your question: no, there’s no need to create any new folder or anything. Everything is inside the plugin archive that you can download above. The path to your plugins directory is wp-content/plugins. For more info on installing wp plugins, see this: Managing Plugins.
Hi,
very intersting plugin BUT i want to ask you:
you said
“Featured articles gives the wordpress blog admin the possibility to display posts in a slick n cool way on the home page, just above the first post from the loop”.
So i can use it in my static front page to show featured posts/ articles?
Many thanks and compliments for the plugin
Hi Carlo,
Yes, it’s possible to use it that way. Actually, there are other options too. You can display it on pages and categories of your choice too. Try it and let me know if everything is OK.
Hi Constanti,
i’m gonna to try.
So I installed the plugin and now it is installed on my front page.
I have to ask you two things:
1st: to change featured post dimension i have to check the div to set in CSS of plugin?
2nd: in 4th featured posts listed you can see see that also the [caption setting] of image published in the post is written on featured post.
Does the plugin help in google ranking of site?
best regards
1. any CSS modification can be made directly in CSS file ( it’s inside the plugin directory ) so yes, you’re correct.
2. about the captions code, try this:
– open wp_featured_articles.php
– go to line 172 ( this one: $string = strip_tags($string); )
– after line 172, add the following code: $string = preg_replace( ‘|\[(.+?)\](.+?\[/\\1\])?|s’, ”, $string );
– save changes and see if it works
About plugin helping in Google ranking, I don’t think so but it helps your users see the latest news on your blog.
I love this plugin but I switched templates and it no longer works. Can you tell me where it is the templatre should be calling mootools from?
Thank you
I don’t think I really understand the question but here goes. MooTools files, including FeaturedArticles.js are located inside the plugin folder ( wp_featured_articles ). To check if the files get included in head, search for the plugin folder. If you still have trouble using the plugin please give me more details regarding this.
Hi Constantine,
adding the php code:
$string = preg_replace( ‘|\[(.+?)\](.+?\[/\\1\])?|s’, ”, $string );
after line 172
next error occurs
Parse error: syntax error, unexpected ‘[‘ in /home/web/www.ilbigliettaio.it/www/wp-content/plugins/wp_featured_articles/wp_featured_articles.php on line 173
Paste the code into your page and after you do that, replace all quotes by hand with single quotes and everything should be fine.
Hi Constantine and thanks for your patience,
do you want to mean:
to replace whole quote inside wp_featured_articles.php with single quotes
OR
to replacer quote inside single code do you suggested me with single quotes?
thanks
Just in the code I suggested. What inside the plugin works just fine.
Hi Costantin,
i find others next faults:
some slide are faster than others (?);
in some slide the FA_info bar stays over the article (?)
i tryied to customizee CSS:
#FA_featured_articles: { height:325px
#FA_featured_articles .FA_article .image_container {height:325px
BUT
How to pull down the FA_info bar?
and how to set FA_info bar width?
many thanks
BUT
how to pull down the FA_info bar ???
and how to set FA_info width ?
Put height 325px on :
1. #FA_featured_articles
2. #FA_featured_articles .FA_article
This will “pull down” FA_info bar.
Now, to set the width on info bar, change width on:
1. #FA_featured_articles .FA_article .FA_info
2. .FA_info .written, .FA_info .comments, .FA_info .readon ( this one is optional if you want the inner links to cover the whole width )
Hope this makes sense. Let me know.
Hi Constantine,
and thankyou :
i could pull down the info bar.
About info bar width it could be interesting understand how to determinate its lenght: i.e.
thumbanail width+ etc etc
anyway even i could not setting info bar width ( i add to 300px -thumbnail width) there is no problem.
Yours plugin in look fine!
You are a great preson “Emperor Constantine ”
best regards
(ps anyway IF you think we can trying anymore to setting the info bar width you are welcome !)
is there a way to remove the info bar all together? If you reply to this, I’d appreciate if you could email me to let me know. Thanks!
also, how can i add the “read more” link to the bottom of the description instead of in the info bar?
Thanks!
Hi Constantine,
i tryied to add the following code after 172 line in wp_featured_articles.php
$string = preg_replace( ‘|\[(.+?)\](.+?\[/\\1\])?|s’,’, $string );
and an next error occurs:
Parse error: syntax error, unexpected ‘[‘ in /home/web/www.ilbigliettaio.it/www/wp-content/plugins/wp_featured_articles/wp_featured_articles.php on line 173
and i tryied also with other different quote setting but nothing happened.
many thanks ans sorry for trouble
Hello
Plugin works well. Though, I’d like to place the box exactly where I want.
I’ve been looking at the Wordpress loops and so on, but I cannot find the code.
Isn’t there somewhere a given PHP instruction that your extension inserts in the main files (index.php etc) and that i could copy/paste at will ?
Inside wp_featured_artiles.php, all hooks are defined between lines 415-419. The one adding the slider is this one:
add_action(‘loop_start’, ‘wp_featured_articles’,1);
To display the slider in your theme, try calling the function wp_featured_articles(). It’s not fully tested but try it and see what happens.
Hi there, I’m using this mootools library as a standalone version (without WP), but there’s a problem which I cannot solve. It works perfectly with mootools 1.2, but is it possible to make it work with 1.1 version? I am also using some other mootools libraries that are incompatible with mootools 1.2 version, so I’m forced to stick with 1.1. I would really appreciate if the author could make this script mootools 1.1 compatible, providing it’s not a big job to do.
Other than that, very neat and useful script!
It’s a bit painful to do what you ask. I’ll give it a try, see what happens but I can’t promise anything.Here you go: MooTools 1.1 WP Featured Articles script
Thank you very much for your time! The modification works perfectly with Firefox, Chrome, Opera and Safari. In Internet Explorer 8 the numbered buttons do not respond (pressing them doesn’t change the slides), but I’ll figure this on my own. Again, thanks!
I am trying to add this on my custom wordpress theme. It breaks my theme. But i managed to resize the frame using css. Now i can’t find a way to resize post information bar.Can you please tell me about How can i resize css or the script to fit 575 px width? And can i call the plugin to different location on my theme? Thanks..
To resize the whole thing youneed to set different width in stylesheet for:
#FA_featured_articles ( line 26 in stylesheet.css )
#FA_featured_articles .FA_article ( line 35 )
#FA_featured_articles .FA_article .FA_info ( line 70 )
About calling the plugin in a different location, you can try adding < ?php wp_featured_articles();?> in your theme where you want to display the plugin.
Works nice, exactly what I was looking for.
Thank you, But how can I change the width of it, as it seems to cutting some text on the right
Just found it in comments on how to change the width, now adjusted.
Thank you
Hi,
I have installed the plugin and activated it fine, Does it come up on the home page by default ? I have set it to display on the home page in the settings but I cant see anything at all. Do I need to install some script or call a script page in the header file ?
I know this will sound stupid ! I should know this right !!!
Thanks
John
Hi John,
Looks like the plugin doesn’t display anything. Can’t say why is that happening, might be from your theme. Yes, it should come on your home page by default, nothing else except what you downloaded is needed.
If you put it on another page other than home, does it display?
Hi Constantin,
When I activate the plug-in the width is wrong – text overflows – but I can see from comments how to change that, thank you. But the navigation buttons are not showing and there is no slide. Thinking it might have something to do with the ’sticky / latest’ coding of my theme (Mimbo) I deleted that and tried again. No effect on plugin. Put that code back. Is it clashing with another part of theme, or with another plugin?
I left plugin activated in ’shop’ category only for you to look if you have a minute. http://www.viewhangzhou.com/category/hangzhou/shop/
Probably something simple, but in over my head here…
Thank you, Sheridan
btw Using 2.9.2
Hi there,
You’re experiencing these problems because you have multiple frameworks loaded by various plugins and I was using mootools 1.2. There’s a new version now that solves these conflicts ( moo 1.2.4 ) and I updated the plugin. Try and download the plugin again and update it on your blog and it should all be fine. Let me know.
Constantin, Thank you for quick response. I uploaded and installed updated plugin, but there is still a clash somewhere. I deactivated all plugins and started reactivating one by one. Clash seems to be Lightbox 2 (http://wordpress.org/extend/plugins/lightbox-2/). Frankly I prefer your plugin so can leave off Lightbox, but if can fix this, would be grateful. What is best way to go about this? DO you happen know a good lightbox style plugin that wont clash?
Thank you, Sheridan
Hi, first of all thank you for this easu plugin.
Second, i have problem with it
I have blog with template Wp-launch and changed its featured article thing with your plugin and i was happy. But my blog posts are pulled to another website, every newest blog post is displayed in other website footer. I’ve done this with instructions from this page: http://www.corvidworks.com/articles/wordpress-content-on-other-pages
And problems started because now in other website’s footer I see all blog posts, not only one as i configured. But when i disabled your plugin problems dissapeared. So what i need to do , that there would be possibility to use your plugin and show blog posts in other website?
Hi Tomas,
To be honest with you, I never tried this. Sounds interesting though. Anyway, the problem might be the hook. Open wp_featured_articles.php and on the last lines, you should see this one
add_action('loop_start', 'wp_featured_articles',1);Comment it. This will disable the slider from appearing before the loop. This means that on your main website, you’ll need too add this manually. To do this, open your theme file where you want your featured articles slider to display ( index.php for example ) and put in there this:
if (function_exists('wp_featured_articles')) {wp_featured_articles();
}
Let me know if this works.
Hi,
it works like a charm, thanks for your help. Keep working
Bye.
Hi,
I really love your plugin. I don’t really know how to configure it, due to my limited knowledge. Could you take a look @ my site and tell me how to configure. As my site background is dark, I would like the background of the features box to be a different color if that is allowed, and have the font a different color as well. As you will see, the text runs off the page. How do I resolve that. I appreciate any assistance you can give me.
Zelda
“For God so loved the world,
that He gave His only begotten Son,
that whoever believes in Him shall
not perish, but have eternal life”.
John 3:16
All changes you ask for can be managed from stylesheet. Stylesheet is located in folder wp_featured_articles/styles/stylesheet.css. You can change the whole slider design from there. About the text running from page, I don’t fully understand what you mean. But, to change the slider behavior you will have to make some minor changes to the JavaScript file located in wp_featured_articles/scripts/FeaturedArticles.js. Once you open that file with an editor, scroll (if needed) until you reach the bottom and you will see the script instance. Also, I recommend reading the article above.
Hi,
And thanks for responding. What I mean when I say that the text run off, I am saying that the text in the box does not wrap to the next line, but continues and you can’t see the rest of the message. If you go to my sitem you will see what I am referring to: http://www.godswordtruthandprophecy.info How can I resolve this issue?
Hi Constantin,
I have tried to modify the plugin for my site, and I am having difficulty. I read all through the above info. I don’t know html, css, etc. I was able to change some things however, as you can see if you take a look @ my site. I really like your plugin, it is better than what I have used so far and have since deleted in favor of yours, as this will definitely fit my needs. I want to make the background area of the box white, and the text #702350. I need to know exactly where, and in all places to make these changes. I am not familiar with counting the lines, and what lines to count.
I have also tried to change the width of the box to match the post box below it to no avail. I would greatly appreciate your assistance. I am most happy I was able to change the color and text of ‘featured articles’
Thank you for your time
Zelda
Hi,
Sorry for the delay, I’m very busy right now and I simply forgot about your new comments. About counting the lines, this is a must. You need to use an editor, Notepad++ is a nice free one.
Now, for the background: on line 26 in stylesheet.css, you have this: #FA_featured_articles. You need to change the last property from
background:#2b3333 url(article_bg.gif) repeat-x top;tobackground:#FFF;About the text color, you need to change both text and title color. For text, go to line 35 in stylesheet ( this is the line: #FA_featured_articles .FA_article ) and change from properties:
color:#CCCCCC;tocolor:#702350;For the title, go to line 61 ( #FA_featured_articles .FA_article h2 ) and change from properties
color:#D9F2FF;tocolor:#702350;For the box width, go to line 35 ( #FA_featured_articles .FA_article ) and from properties change
width:673px;to whatever width you need it to have ( ie:width:300px;to make it 300 pixels wide )This should be all. As a note, think about learning or at least having some knowledge of basic HTML and CSS, it will help you a lot in the future. Best place to start: http://w3schools.com/html/default.asp (learn html) and http://w3schools.com/css/default.asp (learn CSS) .
Thank you Constantin for getting back to me. I will work on this weekend, and let you know if I have any problems.
Thanks Again
GOD Bless You
Zelda
“I am the LORD, and there is no other; There is no God besides Me. I will gird you, though you have not known Me, That they may know from the rising of the sun to its setting That there is none besides Me. I am the LORD, and there is no other; I form the light and create darkness, I make peace and create calamity; I, the LORD, do all these things.’
“Rain down, you heavens, from above, And let the skies pour down righteousness; Let the earth open, let them bring forth salvation, And let righteousness spring up together. I, the LORD, have created it. “Woe to him who strives with his Maker! Let the potsherd strive with the potsherds of the earth! Shall the clay say to him who forms it, ‘What are you making?’ Or shall your handiwork say, ‘He has no hands’? Isaiah 45:5-9 NKJV
I dont know why but my text is overflowing when i use this plugin
What exactly do you mean? Can you give me a link to see your installation?
You can view this at http://shashanktipsntricks.com Please solve this problem and if possible can you provide me with a plugin that displays the pages like in your blog on the left side it crawls with us as we move along the page.
Thanks
With best regards
Shashank
As you can see the plugin is not displaying the post correctly it is removing a part of the post at end of each line
There’s nothing wrong with your plugin. You only need to style it a little. Look at Change appearance above.
I dont know php script and i cant understand it can you explain it in detail
It’s not PHP, it’s only CSS styling. You need to open the stylesheet located in your plugin directory in styles/stylesheet.css. From the article above, under Change appearance
Appearance is managed by CSS. To change the way the Featured Articles slider looks, you need to open with an editor the file located at: your_wp_blog_path/wp-content/plugins/wp_featured_articles/styles/stylesheet.css
In here, you’ll find a number of CSS declarations. I’ll try to detail a bit how to change the slider size.
On line 26 in stylesheet.css, is the #FA_featured_articles container. A bit lower, on line 35, the slides are styled. Basically, both the container ( #FA_featured_articles container ) and the slides should have the same size because of overflow:hidden set on #FA_featured_articles.
Hi Constantin and thank you for the plugin, it’s exactly what I was looking for! However, after reading these messages it is still unclear to me as how I could put it in my static front page _after_ everything else. Now it is automatically on the top of the screen and I don’t know how to change it. Thanks!
1. Go to wp-admin->Settings->Featured Articles and from Display select the pages where you want the script to appear.
2. Open in an editor the wp_featured_articles php page and scroll all the way to the bottom. Comment this line: add_action(‘loop_start’, ‘wp_featured_articles’,1);
3. Open page.php from your there and where you want the slider to appear, put this:
<?php
if( function_exists(‘wp_featured_articles’) )
wp_featured_articles();
?>
All should be fine now. Let me know.
Is there any way to get this to display on only the front page and not subsequent news/blog pages?
Please check the options ( wp-admin/Settings/Featured Articles ). If you can’t do what you need to do from there, please let me know. Thanks.
Thank you Constantin for this awesome plugin. It works fine with my theme and WP version2.9.2. Will just have to style it a bit to match my site. Overall, this is really good. Thank you very much.
Thank you, I appreciate it.
this code does not work!
This is what works:
And to comment on the line: add_action(‘loop_start’, ‘wp_featured_articles’,1);
Need to write a # in front of Cosic this: #add_action(‘loop_start’, ‘wp_featured_articles’,1);
Leave a comment