Magenaut

Magenaut

A blog about Magento Development, Magento bug fixing, and more

Skip to content
Menu
  • Home
  • Notes
  • Tutorial
  • Bug fixing
  • Extension
  • Server
  • Q&A
  • About

Tag: posts-where

Q&APosted onAugust 1, 2022August 2, 2022

Using dynamic conditions in ‘posts_where’ filter

I have the following code which gives be posts that are published in the last 100 days

Read More
Q&APosted onAugust 1, 2022August 2, 2022

How to modify posts_where filter only for the search query

I’m using posts_where filter in order to modify the user searches on a web, but i find out that some default widgets like the “more recent posts” uses this filter too and their behaviour are also modified.
I am trying to find a way to avoid that anything other than the users searches use the posts_where filter.

Read More

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 141 other subscribers

Recent Comments

  • anonymous on Fix libwacom9 dependency issue when upgrade Debian
  • sreedhar on Fix libwacom9 dependency issue when upgrade Debian
  • saintnick on Fix libwacom9 dependency issue when upgrade Debian
  • ranafoul on Fix libwacom9 dependency issue when upgrade Debian
  • John Fro on UFW rule from a list of IPs

Tags

actions admin ajax bash block-editor categories command-line css custom-field custom-post-types custom-taxonomy customization database debian filters functions hooks images javascript linux loop menus multisite pagination permalinks php plugin-development plugins post-meta posts rest-api security shell shell-script shortcode templates theme-development themes uploads url-rewriting user-roles users woocommerce-offtopic wp-admin wp-query

© Magenaut - The Magento Astronaut