Title: cjohnson26's Replies | WordPress.org

---

# cjohnson26

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Decon Character Counter] Not Working in General](https://wordpress.org/support/topic/not-working-in-general/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years ago](https://wordpress.org/support/topic/not-working-in-general/#post-6424509)
 * Hi Mic! Thank you so much.
 * Corey
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Form to Post] Delay Post](https://wordpress.org/support/topic/delay-post/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/delay-post/#post-6447876)
 * Right, I used the ‘future’ post status. On the admin dashboard, when looking 
   at the list of posts, the status term is “scheduled”.
 * I’m thinking the issue may be with another plugin I have installed or something.
   I’m not sure why the ‘future’ status is not working.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Form to Post] Delay Post](https://wordpress.org/support/topic/delay-post/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/delay-post/#post-6447874)
 * Thanks. So, I’ve done that and see that the date/time gets applied properly, 
   but the post_status does not accept future – it won’t go to the “scheduled” status.
   Everything goes to the “published” status immediately, even though it will have
   a future date/time.
 * Any thoughts on why this may be? I’m not sure how to fix it. I wonder if there
   is a way to set the default status as scheduled for all posts…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Form to Post] Delay Post](https://wordpress.org/support/topic/delay-post/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/delay-post/#post-6447869)
 * Yeah – when manually creating a post, you can select a future date and time and
   instead of “publishing” the post, it can be “scheduled” (the button to update
   the post literally changes to “schedule”).
 * Other plugins (like Jetpack) allow the same feature with the shortcode something
   like: [delay +2 hours]
 * Not sure what you have in mind, but the additional parameter would be awesome!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Decon Character Counter] Not Working in General](https://wordpress.org/support/topic/not-working-in-general/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/not-working-in-general/#post-6424113)
 * I take that back on the post above. I didn’t realize that I need to save/publish
   the post first.
 * Is there a way to have this feature calculating as I type before saving it?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-days-ago] Code into Template-Tags.php File](https://wordpress.org/support/topic/code-into-template-tagsphp-file/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/code-into-template-tagsphp-file/#post-6239436)
 * I would like the “days ago” information to be displayed to the right of the calendar.
   Where I currently have the “wp_days_ago_v3(84600)” displayed.
 * For some reason, the actual “days ago” information keeps showing up at the beginning
   of the themememe_posted_on() function.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-days-ago] Code into Template-Tags.php File](https://wordpress.org/support/topic/code-into-template-tagsphp-file/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/code-into-template-tagsphp-file/#post-6239431)
 * I understand now. I guess the issue that I’m having is that the function keeps
   showing up before the other information (author, category).
 * Here’s the code & you can look at condensus.com to see that the “days ago” function
   shows at the beginning…
 * function themememe_posted_on() {
    $time_string = ‘<time class=”entry-date published”
   datetime=”%1$s”>%2$s</time>’;
 *  $time_string = sprintf( $time_string,
    esc_attr( get_the_date( ‘c’ ) ), esc_html(
   get_the_date() ), esc_attr( get_the_modified_date( ‘c’ ) ), esc_html( get_the_modified_date()));
 *  printf( __(‘ <span class=”byline”><i class=”fa fa-user”></i>%1$s</span><span
   class=”posted-on”><i class=”fa fa-calendar”></i>wp_days_ago_v3(84600)</span>’,‘
   themememe’ ),
    sprintf( ‘<span class=”author vcard”>[%2$s](https://wordpress.org/support/users/cjohnson26/replies/%1$s?output_format=md)
   </span>’, esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ), esc_html(
   get_the_author() ) ), sprintf(‘%s’, wp_days_ago_v3(172800), esc_url( get_permalink()),
   $time_string ) ); } endif;
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Show Form Only to Logged-In Users](https://wordpress.org/support/topic/show-form-only-to-logged-in-users/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/show-form-only-to-logged-in-users/#post-6243369)
 * [@takayuki](https://wordpress.org/support/users/takayuki/) – I understand now.
   I thought it was the plugin’s file.
 * I also played around and completely understand how it works.
 * Is there a way to make the contact form give a response on the submit button 
   to login or create an account? Perhaps in the additional settings text area at
   the bottom of the form creation window…?
 * I would like to form to show to all users, but give a response when a user is
   not loggin in. Thanks for your help!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-days-ago] Code into Template-Tags.php File](https://wordpress.org/support/topic/code-into-template-tagsphp-file/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/code-into-template-tagsphp-file/#post-6239429)
 * Hey Vegard,
 * Thanks for help. Humorously, your notes helped me find where the code should 
   be placed, however, I don’t know how to adjust properly to display. Currently,
   I have:
 * sprintf( ‘wp_days_ago_v3(172800);’,
 * But how do I make it work inside of the single quotes ‘ ‘
 * Thanks,
    Corey
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Show Form Only to Logged-In Users](https://wordpress.org/support/topic/show-form-only-to-logged-in-users/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/show-form-only-to-logged-in-users/#post-6243343)
 * Okay, I had the WP default theme back on (Twenty Fifteen) and I deactivated all
   plugins. I added this code to the contact-form-7/includes/contact-form-template.
   php file and it didn’t work – same error:
 * <?php
 * if ( is_user_logged_in() )
    echo do_shortcode( ‘[contact-form-7 id=”1234″ title
   =”Contact form 1″]’ );
 * ?>
 * I’m curious… on the plugin editor page, the template file shows this: “Editing
   contact-form-7/includes/contact-form-template.php (inactive)” I wonder if it 
   being “inactive” is an issue.
 * Thank you so much for the help.
 * Corey
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Show Form Only to Logged-In Users](https://wordpress.org/support/topic/show-form-only-to-logged-in-users/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/show-form-only-to-logged-in-users/#post-6243306)
 * Hey guys,
 * Thanks for the feedback and clarification. I’ve switched to the WP default theme
   and removed all plugins except Contact Form 7.
 * Corey
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Show Form Only to Logged-In Users](https://wordpress.org/support/topic/show-form-only-to-logged-in-users/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/show-form-only-to-logged-in-users/#post-6243234)
 * Do you want me to deactivate all plugins, switch to the default theme, then activate
   all plugins again and move back to the theme I’m using?
 * I’m not going to deactivate all plugins and switch to the default theme indefinitely.
 * What about a coding alteration or a new location of the code that you provided
   the user 2 years ago?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Show Form Only to Logged-In Users](https://wordpress.org/support/topic/show-form-only-to-logged-in-users/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/show-form-only-to-logged-in-users/#post-6243225)
 * Thanks for the reply Takayuki. It’s [http://condensus.com/](http://condensus.com/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Parse error: syntax error, unexpected T_STRING](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-62/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-62/#post-5608287)
 * Hey keesiemeijer!
 * Yeah, it’s a variation of the human_time_diff() – I just changed the name so 
   it wouldn’t clash with the original coding.
 * Here’s the full code for that section:
 * function themememe_posted_on() {
    $time_string = ‘<time class=”entry-date published”
   datetime=”%1$s”>%2$s</time>’;
 *  $time_string = sprintf( $time_string,
    esc_attr( get_the_date( ‘c’ ) ), esc_html(
   get_the_date() ), esc_attr( get_the_modified_date( ‘c’ ) ), esc_html( get_the_modified_date()));
 *  printf( __( ‘<span class=”byline”><i class=”fa fa-user”></i>%1$s</span><span
   class=”posted-on”><i class=”fa fa-calendar”></i>%2$s</span>’, ‘themememe’ ),
   
   sprintf( ‘<span class=”author vcard”>[%2$s](https://wordpress.org/support/users/cjohnson26/replies/%1$s?output_format=md)
   </span>’, esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ), esc_html(
   get_the_author() ) ), sprintf( ‘<!–[–>%2$s<!–](https://wordpress.org/support/users/cjohnson26/replies/%1$s?output_format=md)–
   >’, esc_url( get_permalink() ), $time_string ) ); }
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Emphaino] Increase or Endless Feed](https://wordpress.org/support/topic/increase-or-endless-feed/)
 *  Thread Starter [cjohnson26](https://wordpress.org/support/users/cjohnson26/)
 * (@cjohnson26)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/increase-or-endless-feed/#post-3574648)
 * Thanks for the easy fix! Learning wordpress a little more each day.

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

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