fmachs
Forum Replies Created
-
Forum: Plugins
In reply to: Prefixing permalink structure with a word (e.g., ‘blog’)If you add /blog WordPress will try to figure out if it is a page or a post.
Numbers are good because each entry (post, page) in the database is associated with a number (an ID). The id is indexed, so the database search in a more efficient way. In text search, usually the first 3 letters are indexed to make things easy for search.If I am wrong, someone will correct me.
Good luck.Fábio
Forum: Fixing WordPress
In reply to: permalink problemHow can I add the /blog to the posts permalinks without having it set like /blog/%postname%/?
http://www.example.com/blog/post-name
http://www.example.com/post-nameForum: Plugins
In reply to: [Plugin: Search Everything] can this exclude attachments from search?nvm.
Found line 520:
$search = " OR ({$search}) ";And changed to:
$search = " OR ({$search}) AND $wpdb->posts.post_status = 'publish' OR $wpdb->posts.post_status = 'attachment' ";That solved my problem. Now the search works for custom fields and isn’t duplicating entries.
Forum: Plugins
In reply to: [Plugin: Search Everything] can this exclude attachments from search?I am looking for a way to exclude attachments from the metadata search.
Any ideas?