How to include shortcode in your post without running

If you have ever tried to include a shortcode as an example in any of your posts, and said shortcode is active in our blog, we know the nightmare that we face: the shortcode will be executed even when we put it between

error that we make is this: we insert the complete shortcode ignoring (or forgetting) that the person in charge of executing it is PHP code, which processes the shortcode and sends the result, completely ignoring the it is wrapped in.

The solution is to separate the shortcode, but not with spaces, but with them . For example:

Basically what we do is separate the shortcode, but instead of using spaces, we use a few extras.

Add predefined text in new posts

I have read this petition for a long time. I do not know if it was someone in a blog or a forum, but the fact is that what I wanted was that whenever I created a new post it would already include a default text, not from a blank board.

Possible applications ?, many, from the simple signature of the author to not have to enter it manually, going through a code of a banner, still images, whatever. And I do not mean insert text at the end of posts as shown but in your WordPress editor, which appears by default as soon as you open it to write a new entry.

Well, it seems that Justin Tadlock found the same request and has found a solution that, in addition, does not require modifying any file 'core' ((Fixed files of WordPress installation)), but rather you simply have to add a few lines to the file 'functions.php' of our active template (one day you will have to make a monument to this file), the following:

Also this code has a virtue (although any one thinks that it is a failure), and it is that it does not modify any article already created but it will only add the text in the following posts that you create after you save the changes in 'functions.php' .

More news in WordPress 2.8

Although, at the time of writing this entry, version 2.8 was only 36% complete, it already incorporates many new features, but there are always some that stand out. As usual, an image and a brief explanation:

If you like the way you can organize the WordPress Board, you'll love knowing that version 2.8 will include that same mechanism to organize the widgets: just drag the widget you want to the bar you want and ready. Nothing to select confusing options as before.

 themes_wp28 A feature that I liked in version 2.6 was that you could preview the theme before activating it, but honestly, it was annoying for those who wanted to activate a theme without having Preview it (for example, if you already knew how the theme was). Well, now things are simplified: we can activate it, see how it is or even delete it, all separately (although if you preview the theme, you can still activate it as in version 2.7)

Those are the innovations already incorporated in version 2.8 , but there is more: among the innovations to incorporate are:

We hope that these features are finally included in WordPress 2.8 because they look tempting. For the rest, we can only wait 🙂

Change the Post Autosave interval

WordPress automatically saves posts at predefined intervals. This new functionality, included in WordPress 2.1 makes every 60 seconds automatically save the post or page you're editing as a draft.

It's a good idea, especially if of disconnection, because you know that your post will not be completely lost, but it is also possible that the default auto-save interval does not adapt to the tastes and needs of all bloggers.

Fortunately, you can change the WordPress autosave time and set your own time limit. To do this you must change the configuration of the constant called AUTOSAVE_INTERVAL and replace it for as long as you want. This constant can be added to the file wp-config.php which you already know is in the root folder of your WordPress installation. You just have to add a line similar to this:

In this example we have defined that auto-save the posts and pages every 300 seconds, that is 5 minutes. Of course, you can put it at the time you want.

WordPress 2.7 QuickPress and more news • WordPress Help

Again there is surprise in the updates of the previous versions of WordPress 2.7 that we are testing in the Demo.

] Tonight I discover a wonder called QuickPress that from the desktop of the administration panel allows you to directly publish a new post from the WordPress desktop. The system is very basic because it only lets you title, write the post without the help of buttons or quicktags of anything, and add labels. The post will be published in the default category. However can be very useful for quick posts or quotes to references you read on your desktop.

We also find the ] options dropdown in the editor which allows you to define, at a distance of a single click, which editing help widgets you want to display in the editor interface. I thought it was a great idea and I'll put it into practice right now.

Finally, at least from what I discovered, I've been testing the new function of answer from the comments management panel and I have to say that sometimes, and especially to offer quick answers without waiting for load times of your blog, it is a great functionality.

I've read that it's as if WordPress went out of the web but the level of comments a blog writer makes is not comparable to that of your readers, and any help you can give to answer your visitors faster is great .

If you dare you already know that you can register in the Demo of WordPress 2.7 ] that we have enabled and always updated.

NOTICE : this pub lication 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: