How to delete category, author, date, etc files in WordPress

As you already know, WordPress by default creates a series of publications files specifically generates author files, category, labels, date, input formats and searches, but the fact that it is so by default does not imply that it has to be mandatory.

But, above all, it may not be necessary to visutalize these files in your WordPress .

Let's say, for example, that you do not use categories, or that you only use one for everything, or that the only author is yourself, or that you do not use labels or even that does not it gives you nothing to have a series of links to files that neither you nor your visitors use .

So what would be the point of having a series of files that do not contribute anything?

Talking about SEO as you already know the category files and tags can You may end up having your own search engine positioning, and you may not want these files to compete in the future with each particular publication, because in reality the structure of these files does not offer the full content.

Of course, if This is your case, it is not necessary to delete the files, just to mark the settings in your SEO plugin for that those files would not be indexed would be enough .

Now, if what you want is delete them completely if you have decided, you just have to add the following code to the file functions.php of the active theme:

] In the code the files of categories, labels, dates and author are deleted, but you can customize it to your liking.

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:

File with input thumbnails

In Dolcebita have created a super plugin, with which to generate a file of your site created with WordPress in a visual way, very attractive, with thumbnails of the entries if they are available. They have called it WP Timeline Archive .

Also, using it is very simple, you just have to download it and install it (for now only via FTP) and enter this shortcode in the entry or page where you want it show up In this example we exclude the category with ID 1:

You can see it in action on the dolcebita file page .

(Note: the download link does not work at this time, I have already warned to be reviewed)

How to avoid an SPAM attack

The reason for writing this is that an acquaintance's blog has been attacked for several hours a day by some spamer group … Especially these Russians who apparently have nothing else to bother …

After looking for the reason (at the beginning I did not know it was an attack of this type), I took optimize the theme then disable plugins finally complain about the hosting … But none of that was. How did I realize it was a spammer attack? When all of a sudden, while doing all this, an average of 50 new comments per hour appeared that Akismet was able to filter, but while they were doing much consumption of bandwidth, memory and other resources …

Between so much search for optimize WordPress I got to Carlos Leopoldo's blog and among the advice given there was one very interesting … A list that Perishable Press put together with a listing of sites that do spam (they are more than 8000!).

You can download the list from here then left open the file .htacces which is located in the root directory of your installation (via FTP) and add below everything that appears there (copy and paste).

It goes without saying that this can slow down the blog load, since Apa che should check the entire list according to the user that connects, so I only recommend using it when you are receiving a lot of spam or an attack like the one described above.

File using shortcode in WordPress.com

WordPress.com, the free hosting service, has added the functionality of show the file of your blog using a simple shortcode .

To show it you just have to write the following where you want it to appear:

The use is quite varied, with the following display options:

] Last 12 months:

Last 12 months with counter Posts:

Last 18 days:

Last 32 posts:

Last 3 weeks:

All posts in a drop-down:

Last 12 months with counter in drop-down menu:

Last 17 weeks with before and after text :

These codes can be used in posts, pages, even in text widgets

NOTICE : this publication is from two years ago years 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:

Snazzy Archives – A different file

If you're bored with the archive pages to use, sure Snazzy Archives you'll love it because it shows the library of your blog in several ways, which more visually striking.

 snazzy- screenshot-1 "title =" snazzy-screenshot-1 "width =" 500 "height =" 327 "class =" aligncenter size-medium wp-image-4170 "/> </a></p>
<p> Its virtues are as follows: </p>
<ul>
<li> Unique presentation of your posts in various formats </li>
<li> It works on its own, with no need to install anything else, install it, activate it and you already have it </li>
<li> Scan your posts to show images and videos </li>
<li> Different editable templates ( HTML and CSS) </li>
<li> Special effects using jQuery </li>
<li> Can be cached for faster access </li>
</ul>
<p> You can see a <a href= demo on Vladimir Prelovac's blog a joy.

lees is an original content of WordPress Help – Resources, themes, plugins and tutorials in Spanish [19459] 003] and published it Fernando Tellado first here: Snazzy Archives – A different file

Creating a Chronological File

Una file page is nothing more than a page with links to your blog posts sorted by date, categories, etc. . Something that does not have much use habitually but that seems a standard, something that it is necessary to have.

Now, since you have it, better if it serves for something, if it has a structure that serves your readers to find your content based on dates, for example. Milk, if up to we have file page ! . You know, to do one.

This with what I punish you today (and I will pass list before the exam) is a guide to make a file page in which you will offer your readers an organized newspaper library chronologically and hierarchically, as Jobs sends!

The Page

The first thing is to create a file page and, as in other occasions you have to Tell WordPress that it is a page template. It was done like this:

The next thing is to add the standard page code. In your blog you will already have some surely. As always, we use the default WordPress theme, Kubrick, which we should add below. In this case it would be this:

Our Code

We have arrived. Here, where I have indicated before, is where we put the code that will make our file is hierarchical, that shows us correctly the chronology of the posts. Write this down:

How does this work? It is not easy to explain in reality. Basically, we are using the function get_posts () to get the entries ( numberposts = 0 means "all posts"), sorted by date ( orderby = post_date ) and in descending order ( order = DESC ). Then we enter each of them, and compare their month and year of publication with the previous one and showing the year and month of each one. Do you see it?

Let's play!

Well, there's no more. You just have to save the file and upload it to your template folder (/ wp-content / themes / your_plantilla). Then you create a new page in the page editor of the admin panel of your blog, and you choose the one called "Hierarchical File" in the drop-down menu of Page Templates . You save and you already have it, if you apply some CSS class to give something of style to the file and that fits better to the appearance of your blog, little more.

NOTICE : this publication is 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: