custom rss templete

you can create your own custom rss template and create thr loop inside it so you will have easy access to loop only function take a look at this answer that shows how to create your custom rss How to create additional full text RSS feeds

Using $themename Variables

You can do it easier and without polluting the global namespace: get_option(‘template’); gives you the (parent) themes name. If you want the child themes name, use get_current_theme();. You could also use a constant across your theme files: define( ‘YOUR_PREFIX-THEME_NAME’, get_current_theme() );

How to validate this deprecated function

First of all, it’s not the add_filter() call that you’re supposed to be modifying, but the callback: ‘filter_user_has_cap’, i.e. go to where that method is defined and change the user level to ‘edit_pages’. Fixing deprecated notices is easier with the Log Deprecated Notices plugin.

Featured Image Thumbnail Creation

The image isn’t created on save, but rather on upload. The same process that creates the “thumbnail”, “medium”, and “large” size images also creates any other image sizes defined via add_image_size().

How to limit character length in BuddyPress function output [closed]

I think buddypress has a get* version of that function that returns the value instead of showing it on the screen. So just cut the returned string after a certain amount of characters, like 50: $profile_bio = bp_get_member_profile_data( ‘field=Brief Biography’ ); if(strlen($profile_bio) > 50)) $profile_bio = substr($profile_bio, 0, 50).’…’; echo $profile_bio; If there’s no get … Read more

Include default functions and methods

Put this code in the top of your api page, it will call in the functions, but you need to tell wordpress NOT to try and draw a page as well define(‘WP_USE_THEMES’, false); // Tell wordpress not to draw out a page require(‘/path/to/public_html/wp-load.php’); // load wordpress functions