Forum Replies Created
- dnikolaParticipant3 years, 12 months ago in reply to: indexing array from meta field #19841
Based on your response I figured out that I need to wait for another release for problem with this two custom post meta fields which are serialized?
You make update for ACF fields which are also serialized, and will work with any another field?
You think that problem because they appear at the end of content is because they are serialized fields?and what about this with appearing custom taxonomy’s also at the end of content?
dnikolaParticipant3 years, 12 months ago in reply to: indexing array from meta field #19837Hi,
actually it is problem with custom taxonomy’s also
take a look on this photo, and you will see that all custom taxonomy’s for custom post are indexed with this two fields at the end of content
https://prntscr.com/se1x8bTo make clear for your:
Nekategorisano. bbc.com. News. Web portal. Vijest. are taxonomysand than this two arrays
a:5:{s:8:”pdf_urls”;s:0:””;s:13:”crop_pdf_urls”;s:0:””;s:7:”segment”;s:20:”8622733:1588595968:0″;s:8:”importID”;s:7:”3697452″;s:6:”srcURL”;s:55:”https://www.bbc.co.uk/news/world-latin-america-52528881″;}.a:5:{s:3:”sID”;s:7:”8622733″;s:7:”sDataID”;s:7:”1278372″;s:4:”user”;s:2:”17″;s:5:”user2″;s:1:”0″;s:4:”uniq”;s:1:”0″;}
are poste meta field
Also they are repeated indexed as they should
https://prntscr.com/se1xvw
https://prntscr.com/se1y13and for category (I don’t have it for this custom post i have another taxonomy’s) they are all indexed in field category + this two meta fields
https://prntscr.com/se21m2dnikolaParticipant3 years, 12 months ago in reply to: Relationships and items per page not fully managed in admin search #19833you mean by this
dnikolaParticipant4 years ago in reply to: indexing array from meta field #19825I just made simple test I have deleted this post meta with arrays and reindexed this post, and still a the end of content i get Content + all taxonomy’s after content together, and this is for custom post type not sure about post i can test if you think that it will make some difference..
dnikolaParticipant4 years ago in reply to: WP admin search useless #19823This was my fault. WPsolr search better than regular search and return much more results so in first i tough that it was error.
Sorry, my bad!
dnikolaParticipant4 years ago in reply to: Relationships and items per page not fully managed in admin search #19822Yes, please check video
dnikolaParticipant4 years ago in reply to: Support for wp rest api #19821yes first it was meant to replace a search archive, but today a lot of people use WP rest api to build their SPA or mobile aps?
How difficult is to implement this rest API support for WP query’s?
dnikolaParticipant4 years ago in reply to: Custom post status problem #19820Yes it is indexed!
Also there is one more problem
if you filter by anyting like month or category for example
/edit.php?category_name=somecategoryslug (url in wp-admin)That returns all result…
dnikolaParticipant4 years ago in reply to: Custom post status problem #19585Can I give you access to test?
Before you had a chat on site? Do still support that because it will be faster and I don’t want to post sensitive password’s here on forum.
Thanks
dnikolaParticipant4 years ago in reply to: Exclude media from front search #19424Ok,
figured out
this helped.
add_action( ‘init’, ‘exclude_from_search’ );
function exclude_from_search() {
global $wp_post_types;
/* Exclude ‘page’ post type. */
$wp_post_types[‘page’]->exclude_from_search = true;
/* Exclude ‘attachment’ post type. */
$wp_post_types[‘attachment’]->exclude_from_search = true;
}but you could have this as option in plugin settings ..
dnikolaParticipant4 years ago in reply to: Exclude media from front search #19423I made few test and come back to report but now i see that you edited your first answare.
Ok with wp solr I am still getting images showing up
I am using this code// Exclude images from search results – WordPress
function onlyposts_filter_wp_search($query) {
//Filter Search only in the front-end and not in the Admin.
if (!$query->is_admin && $query->is_search) {
//Search in Posts only. Excludes Pages, Attachments and CPTs.
$query->set(‘post_type’, ‘post’);
}
return $query;
}
add_filter(‘pre_get_posts’,’onlyposts_filter_wp_search’);but without wpsolr only posts show up.
What did you want to tell with this get_post_types( [‘exclude_from_search’ => false] ) ) ?dnikolaParticipant4 years, 1 month ago in reply to: Exclude media from front search #19162Ok I will test.
Thanks
dnikolaParticipant4 years, 1 month ago in reply to: Exclude media from front search #19159You mean that I use something like this
add_action( ‘init’, ‘exclude_images_from_search_results’ );
function exclude_images_from_search_results() {
global $wp_post_types;$wp_post_types[‘attachment’]->exclude_from_search = true;
}dnikolaParticipant4 years, 1 month ago in reply to: Custom post status problem #19156Yes I am.
I cane see in line this status with no of articles inside like
Translate (5)but when click on it there is no post’s listed.
dnikolaParticipant4 years, 1 month ago in reply to: Support for all WP query’s #19133Hello,
I know that I have wrote a lot of things but just want to be sure that you have seen this topic.
I hope that you are safe in this pandemic time.
Regards
#staysafe