WP Custom Comment Callback Not Responding

There is apparently some sort of query call that takes place as part of the comments_template() call, just as there is with loop calls. When I put my custom function in the comments template, it works perfectly. I tried putting the entire contents of the comments template into my custom loop-single template, and it didn’t … Read more

Retrive post by tags PHP code

I think there are multiple issues here: 1) Because you’re using query_posts() the post object’s query_vars are inherited by your new query_posts(). I suspect then, that ‘post_type’ => ‘persoane’ is implicitly part of that query posts call. If you switch to using WP_Query instead of query posts, I suspect that will fix the issue. 2) … Read more

Give a function a unique ID

Just… call the function again – you only need to include it once! include ‘./path/to/lib.php’; echo_tweet_js(); // a little tweeting here … echo_tweet_js(); // and a little tweeting over here!

Screen Options WordPress WYSIWYG

The content box is in a <div> with an ID of #postdivrich so you can hide it using CSS. Probably the easiest thing to do is to add a settings option to an existing page so you can turn it off or on. The post below covers that in detail: http://wpengineer.com/2139/adding-settings-to-an-existing-page-using-the-settings-api/ After you have the … Read more

Make a table out of meta box

Each field in the meta box is being saved as post meta (a.k.a. custom fields). You can display the info per-field with the get_post_meta function, i.e.: <?php echo get_post_meta( $post->ID, ‘anime_anime_genre’, true ); ?> The parameter in the middle (anime_anime_genre) is each field ID specified in your code above. The reason “anime” appears twice is … Read more

Query is not work

I think the problem is in your transient set_transient( “7677recent_$my_paged”, $my_query, 60 * 60 ); This is currently refreshing every 1 hour you could try changing it to 3 or 5 mins for testins

Force resize for all video content

Without knowing more information – you can use CSS to set a max width to any element. iframe, object, embed { max-width:100%; } Rachel Baker mentioned Fitvids.JS in her WordCamp Chicago presentation last weekend. It is a Javascript plugin that writes specific code for the various video providers online. Try the CSS solution and fall … Read more