Show “Read more” link only when inserted manually

If you have a blog with different articles on your start page you have to change the “content.php” in your theme folder. On line 27 (if the file is not changed) you should change the function “the_excerpt()” to “the_content()” which then fetches the complete post until a manually set “read more” in the respective post. … Read more

Display specific Taxonomy Term from Custom Post Type

Please use valid format for this Taxonomy Parameters Example: $args = array( ‘tax_query’ => array( array( ‘taxonomy’ => ‘topics’, ‘field’ => ‘slug’, ‘terms’ => ‘dealoftheweek’, ), ), ‘post_type’ => ‘dealmaker_pt’, ‘posts_per_page’ => 50, ‘offset’ => 1 ); $query = new WP_Query( $args );

spaces in a text

Do you mean the space between the paragraphs? If so, the reason why there is no space is that they are divs, not paragraphs. The code for each is <div id=”long id number unique for this paragraph and probably generated by the theme”>. While paragraphs have set spaces defined in the theme, divs do not. … Read more

Make RSS feed only accesible by Mailchimp

Finally, the solution has been, as birgire pointed out, creating a custom feed and only allowing access to that URL: // Create new feed add_action(‘init’, ‘customRSS’); function customRSS(){ add_feed(‘supersecretfeed’, ‘customRSSFunc’); } function customRSSFunc(){ get_template_part(‘rss’, ‘supersecretfeed’); } Then, as the site is private, I had to allow public access to that specific URL, adding the is_feed … Read more

Custom Loop Query For Search Page

You have to pass the search query too. To get the search query, you can use the get_search_query() function, and pass it to the query’s s parameter: $search_string = get_search_query(); $args = array( ‘s’ => $search_string, ‘posts_per_page’ => 12, ‘order’ => ‘DESC’, );