Title: teracomp's Replies | WordPress.org

---

# teracomp

  [  ](https://wordpress.org/support/users/teracomp/)

 *   [Profile](https://wordpress.org/support/users/teracomp/)
 *   [Topics Started](https://wordpress.org/support/users/teracomp/topics/)
 *   [Replies Created](https://wordpress.org/support/users/teracomp/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/teracomp/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/teracomp/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/teracomp/engagements/)
 *   [Favorites](https://wordpress.org/support/users/teracomp/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 35 total)

1 [2](https://wordpress.org/support/users/teracomp/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/teracomp/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/teracomp/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Button Shortcode with Post Vars](https://wordpress.org/support/topic/button-shortcode-with-post-vars/)
 *  Thread Starter [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/button-shortcode-with-post-vars/#post-16341939)
 * Disregard. Problem solved by creating a shortcode that produces a form with hidden
   variables.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Post Expires] Intereferes with other plugin(s)](https://wordpress.org/support/topic/intereferes-with-other-plugins/)
 *  [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/intereferes-with-other-plugins/#post-9093926)
 * Apparently there are issues with Download Monitor as well.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Job Manager] Duplicate Job — Frontend — Job Dashboard](https://wordpress.org/support/topic/duplicate-job-frontend-job-dashboard/)
 *  Thread Starter [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [10 years ago](https://wordpress.org/support/topic/duplicate-job-frontend-job-dashboard/#post-6514932)
 * As of version 1.25.0, Feature – Ability to duplicate listings from job dashboard.
 * I missed this announcement, so I’ll have to look at it in detail, but I suspect
   it does everything needed to duplicate the job listing. Look there first.
 * I will look at my code with the updated plugin soon, but not immediately.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gravity Forms Repeater Add-On] Values lost & not compatible with 'Save & Continue'](https://wordpress.org/support/topic/values-lost-not-compatible-with-save-continue/)
 *  [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/values-lost-not-compatible-with-save-continue/#post-7252052)
 * Definitely would like to see your solution. We’re using the persistence add-on
   and are experiencing the same issue. Looking at the database, the repeated values
   are stored in a nice JSON string, but not retrieved when the user returns to 
   the form. I suspect “persistence” doesn’t have a mechanism to parse the JSON 
   and re-populate the fields.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Job Manager] Duplicate Job — Frontend — Job Dashboard](https://wordpress.org/support/topic/duplicate-job-frontend-job-dashboard/)
 *  Thread Starter [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/duplicate-job-frontend-job-dashboard/#post-6514920)
 * No idea what you mean by “break your galleries as well”
    I haven’t had an issue
   with the code.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Download Monitor] Ninja Form Extension (premium $$) not working](https://wordpress.org/support/topic/ninja-form-extension-premium-not-working/)
 *  Thread Starter [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/ninja-form-extension-premium-not-working/#post-7126850)
 * [@truongvu](https://wordpress.org/support/users/truongvu/),
    I’m not the right
   person to contact…just a user. Suggest you post your issue here and the most 
   excellent Plugin author will likely help you solve your problem. -dp
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Download Monitor] Ninja Form Extension (premium $$) not working](https://wordpress.org/support/topic/ninja-form-extension-premium-not-working/)
 *  Thread Starter [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/ninja-form-extension-premium-not-working/#post-7126848)
 * Truongvu,
    It’s all working now. Thanks anyway! Dave
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YASR - Yet Another Star Rating Plugin for WordPress] Not showing in Custom Post Type](https://wordpress.org/support/topic/not-showing-in-custom-post-type/)
 *  Thread Starter [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/not-showing-in-custom-post-type/#post-7169763)
 * Perfect! That was the secret setting.
    Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YASR - Yet Another Star Rating Plugin for WordPress] Not showing in Custom Post Type](https://wordpress.org/support/topic/not-showing-in-custom-post-type/)
 *  Thread Starter [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/not-showing-in-custom-post-type/#post-7169746)
 * Update: I’m using an Extension to Download Monitor called Page. This provides
   the a search capability, so it’s required given the number of downloads I will
   have.
 * Anyway, the add_filter method works when I call the download monitor shortcode
   on a page ([download id=NNN]), but it does not work on the results page.
 * Bottom line, I don’t think this is your issue, but I’ll leave this here while
   I wait on DLM’s response just in case you’ve seen this before.
 * Thanks for your time.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Add shortcode to custom post type excerpt](https://wordpress.org/support/topic/add-shortcode-to-custom-post-type-custom-field/)
 *  Thread Starter [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/add-shortcode-to-custom-post-type-custom-field/#post-7139041)
 * This works:
 *     ```
       function add_visitor_vote( $content ) {
         global $post;
         if ( $post->post_type == 'dlm_download' ) {
           $content .= do_shortcode('[valid_shortcode]');
         }
         return $content;
       }
       add_filter( 'the_content', 'add_visitor_vote' );
       ```
   
 * But it doesn’t work with the shortcode I’m currently trying to use. Posted comment
   on that site.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Download Monitor] Ninja Form Extension (premium $$) not working](https://wordpress.org/support/topic/ninja-form-extension-premium-not-working/)
 *  Thread Starter [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/ninja-form-extension-premium-not-working/#post-7126570)
 * I deactivated and reset everything and it suddenly appears to be working.
 * I’m not convinced, but if it works, that’s fine.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Job Manager] Duplicate Job — Frontend — Job Dashboard](https://wordpress.org/support/topic/duplicate-job-frontend-job-dashboard/)
 *  Thread Starter [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/duplicate-job-frontend-job-dashboard/#post-6514907)
 * It does indeed work. You’ll need to override the job-dashboard.php file to get
   the duplicate link. I put this code just after the switch() statement:
 *     ```
       $actions['duplicate'] = array( 'label' => __( 'Duplicate', 'wp-job-manager' ), 'nonce' => true );
       ```
   
 * That should do it for you, thought it’s been a while since I looked at the code!
 * btw — here’s my cleaned up code for functions.php:
 *     ```
       /**
        * add method to duplicate a job posting
        */
       function duplicate_job() {
         $job_id = absint( $_REQUEST['job_id'] );
         $dup    = get_post( $job_id );
   
         unset( $dup->ID );
         unset( $dup->post_name );
         $dup->post_title = $dup->post_title.' copy';
         $dup->post_date = current_time( 'mysql' );
         $dup->post_date_gmt = current_time( 'mysql', 1 );
   
       // create the new post along with the post_meta
         $new_post_id = wp_insert_post( $dup );
   
       // get the post_meta and update the dup post
         $dup_meta = get_post_meta( $job_id );
         $dup_meta['_job_expires'] = 	array( calculate_job_expiry( $job_id ) );
         foreach( $dup_meta as $key=>$val ) {
           add_post_meta( $new_post_id, $key, $val[0] );
         }
   
       // taxonomies require their own handling
         $mytype =  wp_get_post_terms( $job_id, 'job_listing_type' );
         $mytypeid = array( $mytype[0]->term_id );
   
         $myrole = wp_get_post_terms( $job_id, 'job_listing_category' );
         $myroleid = array( $myrole[0]->term_id );
   
         $mystates = wp_get_post_terms( $job_id, 'state' );
         $arstates = array();
         foreach( $mystates as $s ) {
             array_push( $arstates, $s->term_id );
           }
         $myapply = wp_get_post_terms( $job_id, 'appoption' );
           $arapply = array();
           foreach( $myapply as $a ) {
             array_push( $arapply, $a->term_id );
           }
           wp_set_post_terms( $new_post_id, $mytypeid, 'job_listing_type' );
           wp_set_post_terms( $new_post_id, $myroleid, 'job_listing_category' );
           wp_set_post_terms( $new_post_id, $arstates, 'state' );
           wp_set_post_terms( $new_post_id, $arapply, 'appoption' );
       }
       add_action( 'job_manager_job_dashboard_do_action_duplicate', 'duplicate_job' );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Charitable - Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns)] Duplicate Custom Post Type — Donations](https://wordpress.org/support/topic/duplicate-custom-post-type-donations/)
 *  Thread Starter [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/duplicate-custom-post-type-donations/#post-7018789)
 * I’m pretty confident that disabling Seamless Donations will address the problem.
   I haven’t processed any donations, but as you suggested, the details should not
   work with both plugins active. What I’m saying in my review is simply not to 
   install them side-by-side. For those looking at my site for advice, this is not
   likely to be an issue.
    This looks like a solid plugin otherwise. Keep up the
   great work!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[File Away] Enable Statistics](https://wordpress.org/support/topic/enable-statistics/)
 *  Thread Starter [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/enable-statistics/#post-6736054)
 * Fair enough. Like I said, I’m new to this site. Just thought I missed a setting.
 * Thx
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[File Away] Enable Statistics](https://wordpress.org/support/topic/enable-statistics/)
 *  Thread Starter [teracomp](https://wordpress.org/support/users/teracomp/)
 * (@teracomp)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/enable-statistics/#post-6736051)
 * sorry…that didn’t work.
    last lines in wp-config.php require_once(ABSPATH . ‘
   wp-settings.php’); error_reporting(0);
 * no dice.
    definitely works when Download Statistics is Disabled definitely fails
   otherwise.

Viewing 15 replies - 1 through 15 (of 35 total)

1 [2](https://wordpress.org/support/users/teracomp/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/teracomp/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/teracomp/replies/page/2/?output_format=md)