Search to include external content

For searching among your posts through Advanced custom fields, use fallowing query: $args = [ ‘post_type’ => ‘post’, ‘meta_query’ => [ ‘relation’ => ‘OR’, [ ‘key’ => ‘NAME_OF_ACF_FIELD’, ‘compare’ => ‘like’, ‘value’ => ‘%’.$search_value.”, ] ] ]; $items = new WP_Query($args); while($items->have_posts()) { $items->the_post(); the_title(); } This will output the titles that matches our search … Read more

How to Fix Form elements do not have associated labels in WordPress Search Form (without button)

Use <label> tag before <input> like this. <label>Email Adress: <input type=”text”> </label> This is a simple method to do this. You can simply omit the use of the submit button if you don’t need it to show. Here is the modified code of yours. <div id=”psform”> <?php $search_text = “Search”; ?> <form method=”get” id=”searchform” action=”<?php … Read more

Search results thumbnails different size

This is down to difference in the classes output by different types of content in your theme’s search page. The CSS of your theme restricts the width of Posts to 50% of the screen with this rule .blog-area .type-post.size-2×1 { width: 50%; } But for your project content, there is no ‘type-post’ or ‘size-2×1’ classes … Read more

make link to search page

Just like cybmeta in the answer you are linking to said: see Creating a search page in the codex. Read it carefully. Create a Template like described, add a new page in the backend and choose as template your new search-template, that is now in the template-dropdown. Now you can set a link to this … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)