{"id":694,"date":"2023-07-27T07:58:28","date_gmt":"2023-07-27T07:58:28","guid":{"rendered":"https:\/\/cachitoswp.com\/?p=694"},"modified":"2025-06-01T18:16:49","modified_gmt":"2025-06-01T18:16:49","slug":"fixed-inputs-or-sticky-posts-fully-control-them","status":"publish","type":"post","link":"https:\/\/cachitoswp.com\/en\/fixed-inputs-or-sticky-posts-fully-control-them\/","title":{"rendered":"Fixed entries or sticky posts, control them completely"},"content":{"rendered":"<p class=\"leading has-primary-color has-text-color has-large-font-size wp-block-paragraph\">Fixed entries or &quot;sticky posts&quot; are posts in which we have marked the option for them to always be displayed at the beginning of all the lists. It is a useful but very dangerous feature that is often very misunderstood by our customers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First of all, this feature of being able to leave a pinned post at the beginning of our listings (&quot;pin it to the top of the blog&quot;) is not the same as &quot;highlighting&quot; the post. When we make a post fixed or sticky, it is prioritized in the query of our database, so its date or sorting criteria are ignored.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A practical case in which it may be advisable to make a \u201csticky\u201d or \u201cfixed\u201d post on the home page could be an important announcement or an error note from the editor, something that is a high priority for your users.<\/p>\n\n\n\n<div class=\"wp-block-group alignwide has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-columns alignwide is-layout-flex wp-container-core-columns-is-layout-f56f613f wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full zoom\"><a href=\"https:\/\/cachitoswp.com\/wp-content\/uploads\/2023\/07\/ts-stiicky-post-front-page.png\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"238\" src=\"https:\/\/cachitoswp.com\/wp-content\/uploads\/2023\/07\/ts-stiicky-post-front-page.png\" alt=\"\" class=\"wp-image-703\"\/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large zoom\"><a href=\"https:\/\/cachitoswp.com\/wp-content\/uploads\/2023\/07\/sticy-post-wordpress.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"359\" src=\"https:\/\/cachitoswp.com\/wp-content\/uploads\/2023\/07\/sticy-post-wordpress-1200x359.png\" alt=\"\" class=\"wp-image-704\" srcset=\"https:\/\/cachitoswp.com\/wp-content\/uploads\/2023\/07\/sticy-post-wordpress-1200x359.png 1200w, https:\/\/cachitoswp.com\/wp-content\/uploads\/2023\/07\/sticy-post-wordpress-640x191.png 640w, https:\/\/cachitoswp.com\/wp-content\/uploads\/2023\/07\/sticy-post-wordpress-768x229.png 768w, https:\/\/cachitoswp.com\/wp-content\/uploads\/2023\/07\/sticy-post-wordpress-1536x459.png 1536w, https:\/\/cachitoswp.com\/wp-content\/uploads\/2023\/07\/sticy-post-wordpress.png 1891w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">What frequently happens is that due to ignorance, we add posts of this type, but we do NOT remove them. If we accumulate many posts with this feature activated, we are making a mess, and our site will go slower and slower.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The problem is that the option is not very visible, it is found in the publication options, but then there is nothing else that visually tells us in our backend that the post is &quot;pinned.&quot;<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">If we accumulate many posts with this feature activated, we are making a mess, and our site will go slower and slower.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">As always, &quot;there&#039;s a plugin for that&quot;, and it&#039;s one of those plugins that I&#039;ve found really useful. In fact, I don&#039;t know why this has not been integrated into the WordPress core, because accumulating sticky posts is very, very dangerous in terms of performance.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-plugin-directory wp-block-embed-plugin-directory\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"i9SXB3oXqp\"><a href=\"https:\/\/wordpress.org\/plugins\/sticky-posts-switch\/\">Sticky Posts \u2013 Switch<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u201cSticky Posts \u2013 Switch\u201d \u2014 Plugin Directory\" src=\"https:\/\/wordpress.org\/plugins\/sticky-posts-switch\/embed\/#?secret=WUNTo7KEAL#?secret=i9SXB3oXqp\" data-secret=\"i9SXB3oXqp\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The plugin, once installed and activated, will add a column in the admin of our posts or custom posts types, which will tell us if the post is a fixed entry or not. From here, the column will be sortable, and not only this, we can also edit using the batch editor or bulk editor, this feature, thus being able to remove the &quot;sticky&quot; from many posts at the same time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In a real field case, once a client of mine who had a very large, powerful blog that generated a lot of income, had the problem that his site was extremely slow, even though he had 1000 active caching and optimization systems. The initial response to loading your page was very slow. When we analyzed the queries made by its page, we saw that it had hundreds of fixed entries, which were accumulated with the most recent entries, so quite a stir was created.<\/p>\n\n\n\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/wham-vintage.com\/wham-vintage-barcelona-contactar\/\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/cachitoswp.com\/wp-content\/uploads\/2023\/11\/banner.webp\" alt=\"\" class=\"wp-image-1303\"\/><\/a><\/figure>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">I remember that we solved it by attacking the database directly, changing the option to all those posts. This is because WordPress does not come standard with a way to change this option in batch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With this plugin, you will have at hand a feature that you could almost say can \u201csave lives\u201d. Very, very useful in terms of maintaining blogs with many posts, since it usually happens that, since they are blogs with several collaborators, people &quot;do it&quot; and no one realizes what they are &quot;getting into&quot;.<\/p>","protected":false},"excerpt":{"rendered":"<p>Las entradas fijas o \u00absticky posts\u00bb, son unos posts en los que hemos marcado la opci\u00f3n de que \u00e9stos se muestren siempre al principio de todo de los listados. Es una caracter\u00edstica \u00fatil pero muy peligrosa que a menudo es muy mal interpretada por nuestros clientes. Lo primero de todo es que esta caracter\u00edstica de [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":700,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[7],"tags":[33,31,32,34],"class_list":["post-694","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plugins","tag-mantenimiento","tag-plugins-muy-utiles","tag-rendimiento","tag-sticky-posts-o-entradas-fijas"],"mb":[],"mfb_rest_fields":["title"],"_links":{"self":[{"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/posts\/694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/comments?post=694"}],"version-history":[{"count":1,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/posts\/694\/revisions"}],"predecessor-version":[{"id":1312,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/posts\/694\/revisions\/1312"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/media\/700"}],"wp:attachment":[{"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/media?parent=694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/categories?post=694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/tags?post=694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}