Title: Better function columns_content to avoid conflicts
Last modified: September 1, 2016

---

# Better function columns_content to avoid conflicts

 *  Resolved [AFillbrandt](https://wordpress.org/support/users/afillbrandt/)
 * (@afillbrandt)
 * [10 years ago](https://wordpress.org/support/topic/better-function-columns_content-to-avoid-conflicts/)
 * Hi there,
 * in admin/class-affiliate-links-metabox.php with function columns_content is a
   conflict with other plugnis.
 * Better way:
 *     ```
       /**
            * Modify admin grid columns.
            */
           public function columns_content( $column_name, $post_id ) {
   
       		switch ( $column_name ) {
       			case 'permalink' :
       				echo esc_html( get_the_permalink( $post_id ) );
       				break;
       			case '_affiliate_links_target' :
       				echo esc_html( get_post_meta( $post_id, '_affiliate_links_target', true ) );
       				break;
       			case '_affiliate_links_stat' :
       				echo esc_html( get_post_meta( $post_id, '_affiliate_links_stat', true ) );
       				break;
       			case '_affiliate_links_description' :
       				echo esc_html( get_post_meta( $post_id, '_affiliate_links_description', true ) );
       				break;
       			case '_affiliate_links_redirect' :
       				echo esc_html( get_post_meta( $post_id, '_affiliate_links_redirect', true ) );
       				break;
       			case '_affiliate_links_nofollow' :
       				echo esc_html( get_post_meta( $post_id, '_affiliate_links_nofollow', true ) );
       				break;
       		}
   
           }
       ```
   
 * [https://wordpress.org/plugins/affiliate-links/](https://wordpress.org/plugins/affiliate-links/)

Viewing 1 replies (of 1 total)

 *  [TeamDev Ltd](https://wordpress.org/support/users/teamdev-ltd/)
 * (@teamdev-ltd)
 * [10 years ago](https://wordpress.org/support/topic/better-function-columns_content-to-avoid-conflicts/#post-7461886)
 * Hi AFillbrandt,
 * Thank you very much for pointing on this! We really appreciate this.
 * We have fixed this. Please download latest version of the plugin.
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Better function columns_content to avoid conflicts’ is closed to new 
replies.

 * ![](https://ps.w.org/affiliate-links/assets/icon-256x256.gif?rev=3166354)
 * [Affiliate Links - Link Cloaking and Management](https://wordpress.org/plugins/affiliate-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/affiliate-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/affiliate-links/)
 * [Active Topics](https://wordpress.org/support/plugin/affiliate-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/affiliate-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/affiliate-links/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [TeamDev Ltd](https://wordpress.org/support/users/teamdev-ltd/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/better-function-columns_content-to-avoid-conflicts/#post-7461886)
 * Status: resolved