Form fields based on custom fields

Our solution to this was to use Formidable Pro and the following setup. //************************************************** // Generate the contest form //************************************************** // Determin if radio or not add_filter(‘frm_field_type’, ‘change_my_field_type’, 10, 2); function change_my_field_type($type, $field){ global $post; if($field->id == 8){ if (get_post_meta($post->ID, ‘_cmeta_contest_q1_type’, true) !== ‘field’) { $type=”radio”; //change field to radio on multi-answer questions } else … Read more

Get Posts Link With Each Other

Built into WordPress are categories, tags, and trackbacks/pingbacks that can serve as crosslinking. Your theme has to display the category an tag listings, which most seem to do. Trackbacks/pingbacks are displayed as part of the comment thread. Anything else, or anything more complicated, you will have to do yourself. Based on your question, I am … Read more

Displaying content to search engines but via navigation only for registered users.

You can detect where the user comes from (like Google) using HTTP_REFERER. <?php if (strpos($_SERVER[‘HTTP_REFERER’], “google”) == true) { echo “Hello Google User!”; } ?> So for your logged-in user: <?php if ( current_user_can( ‘subscriber’ ) && strpos( $_SERVER[‘HTTP_REFERER’], ‘google’ ) ) { ?> [content here] <?php } ?> Important Links wp_get_referer()

get_attachment_link() adds a hashtag to URL

As mentioned in the comments above, the problem is with the _s theme. The specific function causing the problem is _s_enhanced_image_navigation() in inc/extras.php. The problem can be resolved by changing the first if statement in the function to this: if ( is_admin() || ( ! is_attachment() && ! wp_attachment_is_image( $id ) ) ) return $url;

Building a simple “settings” plugin to change textstrings on the home page

As I understood you correctly you just want to rename ‘kkpo_quote’ and you have conflict. Not to have conflict try to replace all ‘kkpo_quote’ with same name, for example: if you replace ‘kkpo_quote’ with ‘new_quote’ in register_setting(KKPLUGINOPTIONS_ID.’_options’, ‘new_quote’); then make sure that you replace it with ‘new_quote’ where ever is ‘kkpo_quote’ There is 7 times … Read more