Hide parts of the post content after typing it’s name or searching it by category

If you want to apply the same logic to the category archives and the search results as in that question you reference, the following should do it. // modified code from http://wordpress.stackexchange.com/a/97589/21376 function hide_on_home_page_wpse_97587($atts,$content) { if (!is_home() && !is_category() && !is_search() ) { return $content; } } add_shortcode(‘nohome’,’hide_on_home_page_wpse_97587′);

Display in category ( taxonomy) a number of post that I want

If I understand your question right you seem to have the code that seems close to what you want, but doesn’t function correctly. What I have trouble following is that your description talks about taxonomy archives, but your code seems to be about custom post type archives. I would suggest to use more appropriate query … Read more

How to embed custom HTML code with no plugins?

Sounds like you are using the Visual side of the editor. You need to use the Text side. Get it? Update: Preview won’t show embedded objects. Publish it privately if you absolutely must see it before anyone else, and need to see embedded bits like <object> tags. Update #2: Preview will show many embedded objects … Read more

Author Avatar as default first image

There was a lotta junk in that function, here’s all you need: function get_post_image() { global $post; if ( preg_match( ‘/<img.+?src=[\'”]([^\'”]+)[\'”].*>/i’, $post->post_content, $matches ) ) $image = $matches[1]; else $image = get_avatar( $post->post_author ); return $image; }

Show recent posts in a table format

You still can use lists – just use proper CSS (every third li – first li in every row – should have clear property set; You can use CSS classes or :nth-child selector to do this). If you really have to use table (I don’t suggest it – it’s not a very good idea, because … Read more

adding new posts into wordpress DB automatically

You can use the wp_insert_post function $my_post = array( ‘post_title’ => ‘Some titles’, ‘post_content’ => ‘This is my post content’, ‘post_status’ => ‘publish’, ‘post_author’ => 1, ‘post_category’ => array(1, 2, 9000) ); // Insert the post into the database wp_insert_post( $my_post ); }

Problem with trying to display subheader in posts

You easily add an H4 tag in the “Visual” version of the editor (the tab on the upper right corner of the editor) by selecting the text you want to be the subheader at the top of the rich text editor there is a buttom at the end of the first row of icons called … Read more