Replace author with custom field in feed

try this: add_filter( ‘the_author’, ‘feed_author’ ); function feed_author($name) { if( is_feed() && !is_admin()) { global $post; $author = get_the_terms($post->ID,’article_author’); if ( $author ) $name = the_terms($post->ID,’article_author’,”,’ & ‘); return $name; } }

Basic clothing showroom [closed]

For the most basic implementation you can look for fitting theme and make use of gallery functionality of WordPress. More complex or functional implementation might be better accomplished with one of the ecommerce plugins.

Test for IP in Array Always Fails on First IP

There are two pieces to this code: 1) Interpreting the list of allowed IPs from a textarea, delimited by newline character, and 2) Checking if a given user’s IP is in the allowed list of IPs. Part 1) Parse list of IPs delimited by newline character, and trim whitespace: $_POST[‘allowed_ips’] = ” 67.6.134.102 97.118.69.236 “; … Read more

How do I load my site without the side bars? This is for an app

Do you have access to the theme files? If so, try replacing <?php get_sidebar() ?>; with this: <?php if( stristr($_SERVER[‘HTTP_USER_AGENT’],’android’) === FALSE ) { get_sidebar(); } ?> Otherwise, what about access to the theme’s javascript file? var ua = navigator.userAgent.toLowerCase(); var isAndroid = ua.indexOf(“android”) > -1; if(isAndroid) { // Do something! // Perhaps target the … Read more

Implement “No related posts for this entry” into the loop?

I still can’t see how the code and the problem is substantially different from your original topic; however, try to add your text into the typical ‘else’ location for a loop if no posts are found; change this line: <?php endwhile; endif; ?> to: <?php endwhile; else : echo ‘<h3 class=”no-related-posts”>sorry but there are no … Read more

how to remove indent from twently eleven comments reply

If you want to get rid of threading completely you can control it in Settings > Discussion > Other comment settings > Enable threaded (nested) comments. If you want to keep functionality and markup, but change it visually you would need to do that via CSS, which (as per comment on your question) is not … Read more

Problem embedding a page on facebook [closed]

It still goes to the same page, so I assume its being added by facebook for a reason.. maybe for tracking or something. Not sure if you have seen this, but a very good tutorial on embedding your site. http://www.netmagazine.com/tutorials/embed-your-site-facebook