Featured entries with expiration date • WordPress Help

The featured entries or " sticky posts " introduced in WordPress 2.7 are a fantastic feature that allows to leave a fixed post at the top of the blog cover in the style of the veteran forums' featured themes, the problem is that they stay there until you edit them the entry to remove that feature.

Indeed, you can highlight an entry from the editor's meta box, in the section called Visibility.

 Click to enlarge

Click to enlarge

Also, if you forget or decide to fix it later, you can highlight it from the window of entries, choosing the quick edition and checking the box to the effect.

 fix entry highlighted in window of entries

What happens is that it is ta utility is supposed to be used for a certain time, for special announcements or important articles, but there is no way for WordPress to know when it should stop being fixed on the cover .

And right in that Expire sticky a simple but effective plugin that does just what WordPress is missing: define an expiration date of the highlighted entries .

Yes, intuitive in its use is not much, it does not even help the plugin page in WordPress.org, but I'll explain it to you, because it's not complicated either.

Nothing else to install it there is nothing to configure, nor page of adjustments or anything similar. The only thing that the plugin does is to add a new element to the goal post box of the ticket editor for to be able to set the expiration date of the highlighted entry . When you click on the box, a calendar is displayed, you choose the date in which it will stop being fixed automatically and you save the changes. Nothing more and nothing less.

 Click to enlarge

Click to enlarge

The downside is that does not add the same box to the quick edit of the ticket window but if you think about it it is not necessary because the simple idea is that when publishing the fixes, you define the date on which " takes off " from the cover and pushing.

I think it would be a fantastic functionality to include by default in WordPress, maybe better located, if possible just below where you mark as the entrance, but hey, meanwhile there it is, it works wonders and pure simplicity is wonderful, like all simple and effective things.

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

How to activate featured entries in Twenty Eleven

The default WordPress theme, Twenty Eleven has built-in featured entries which will display them in a slider, but its use is not obvious.

If you want to take advantage of this functionality there is no adjustment to modify or option to activate, you just have to take into account the following to activate it:

Here's how to activate the slider, but this has a feature that you can change. And it is that by default it does not have automatic movement, but some points are shown in which you must click to change from a highlighted entry (sticky) to another.

<script type = "text / javascript" charset = "utf-8" >

// Automatic advancement of the Twenty Eleven slider

// Source: http://pastebin.com/s6JEthVi

jQuery () ) . ready ( function () { [19659002] var change_every = 10 ; // The seconds that the slider will take to make automatic advance

var current = 1 ;

function auto_advance [19659019] () {

if ( current == [19659007] – 1 ) return false ;

jQuery ] ( '. Feature-slider a' ) . eq ( current % jQuery ( '. feature-slider a' ) . length ) . trigger ( 'click' [] true ] ) ;

current ++ ];

} ;

setInterval [19659019] () function () {) auto_advance () } change_every [19659007] * 1000 ) ;

} ) ;

]

This code must be added, either in the "showcase" page template or if you prefer in the "showcase" widget ", But without title, it will work the same.

Note: this last trick does not work on wordpress.com, since the insertion of script code is limited

The Sticky Posts Polemic • WordPress Help

One of the new functionalities of WordPress 2.7 are the posted posts, or Sticky Posts a way to define that an entry is stuck on the main page and not replaced by new updates to your blog.

Now this new inclusion – although you could get it with plugins – it seems that does not has liked some for the same fact of its inclusion in the core of WordPress since according to these voices is a bit of a perversion of the blog concept, let alone of the post concept. According to this opinion a sticky post would be a static page occupying space in the index of our blog, and all sponsored by the same WordPress developers, as perversors of the same concept of dynamic publication.

And it is not the same to modify a template, as a personal choice, that modify the core of WordPress so that putting a Sticky is as simple as checking a box, inviting the staticity of the blogs. Yes, it is a philosophical concept but in which I agree because in the end these things become vice and abandon the principles that work, the dynamism of the concept blog .

But as for everything there is a solution , if someone wants to use the possibility of posting posts to the main page here is a cleaner method than the one proposed in the future version of WordPress:

  1. Create a new page in WordPress and put the slug ' sticky '(without the quotes)
  2. Add this code to the file functions.php of your template:
  3. Finally, add this code in the file index.php of your template, wherever you want the page to appear ' sticky ':

Of course, you can add some CSS to give it a distinctive look In any case, in this way you will have a ' sticky ' without perverting the post concept.

I do not know, what do you think about all this?

NOTICE : this post is two or more years ago. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

The News of WordPress 2.7

There are many new features of WordPress 2.7 which some have even said that it looks like WordPress 3.0 . If you do not know yet what changes here you have the complete list:

Design / Navigation

  • Color scheme
  • New design and organization
  • Menu shortcuts to add a new post
  • Main navigation on left side
  • Expand / collapse to see navigation
  • Minimize menu bar button with pop-ups

Desktop

  • QuickPress
  • Redesign of module "Right now", with colors for distinguish the new
  • Draft module
  • Modules that can be dragged and dropped
  • Options to hide or show modules on the screen
  • Moderation of comments from the desktop

Comments

  • Comments nested on the blog
  • Pagination in the blog
  • Keyboard shortcuts to moderate comments
  • Reply to comments from the admin panel
  • Modified panel design
  • Filter comments from pings / trackbacks
  • Links to view all comments for a specific post

Posts

  • Drag and drop modules in the new post window
  • Options to hide or show modules on the screen again post
  • Posts Sticky
  • Comments are displayed in the specific posts window
  • Word counter in the background of the editor
  • New design of the publication module
  • New layout of the screen edit
  • Mass editing
  • Quick edit
  • Options to hide or show columns on the screen
  • New design of the tag window
  • New design of the category window

Media [19659003] Upload media to the library without creating a new post
  • New design of the media library
  • Different sizes for large and full images
  • Media options in the Options section
  • Plugins [196] 59003] Plug-in browser included
  • Plug-in installation with a single click
  • Plug-in uninstaller
  • Core

    • WordPress update kernel update
    • HTTP API
    • Thematic update API, as for plugins
    • XMLRPC comment API
    • Page menu API
    • PHPXref hosted on WordPress.org
    • HTTPOnly cookies
    • Updates and installation on SFTP
    • Integrated PHPdoc documentation

    It seems that if it is an important update, do not you think?

    The entry The News of WordPress 2.7 was first published in WordPress Help .