Customizing Home Page with Pagelines Platform

That is simple is Word Press, regardless of the theme you are using. Dashboard -> Settings -> Reading -> Blog pages show at most This would be better than editing your (child) theme. I am sorry that I went on too much in code editing and forgot the most basic and easy things. But if … Read more

Searchform for searching specific categories

A simple search in codex shows there are some parameters you can set to exclude some categories for example : <?php $args = array( ‘show_option_all’ => ”, ‘show_option_none’ => ”, ‘orderby’ => ‘ID’, ‘order’ => ‘ASC’, ‘show_count’ => 0, ‘hide_empty’ => 1, ‘child_of’ => 0, ‘exclude’ => ”, ‘echo’ => 1, ‘selected’ => 0, ‘hierarchical’ … Read more

Add meta tag to search results

Well I am asuming you want to amend the <title> tag? Add this in functions.php add_filter(‘wp_title’, ‘my_custom_page_title’); function my_custom_page_title($title) { global $s; if( isset($_REQUEST[‘author_name’]) && is_search() ) { $title=”Search Results for “.$s.’ from author ‘.$_REQUEST[‘author_name’]; } return $title; } If $s returns blank replace that with $_REQUEST[‘s’]

search does not yield access restricted results

If you setting the posts to private in WordPress, you can add this to your functions.php file: function include_private_in_search( $query ) { // not an admin page and is the main query if (!is_admin() && $query->is_main_query()){ $query->set( ‘post_status’, array ( ‘publish’, ‘private’ ) ); } } add_action( ‘pre_get_posts’, ‘include_private_in_search’ ); Then you can format the … Read more

Search doesn’t work with ‘relation’ => ‘OR’

There is nothing obviously wrong with the code, assuming you are pushing those arguments through WP_Query, but the query you are trying to run is not going to be very efficient. You have 6 meta values in an ‘OR’ relationship, which is not terribly efficient in itself as all of those rows have to be … Read more