Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter cjohnson26

    (@cjohnson26)

    Hi Mic! Thank you so much.

    Corey

    Forum: Plugins
    In reply to: [Form to Post] Delay Post
    Thread Starter cjohnson26

    (@cjohnson26)

    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
    In reply to: [Form to Post] Delay Post
    Thread Starter cjohnson26

    (@cjohnson26)

    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
    In reply to: [Form to Post] Delay Post
    Thread Starter cjohnson26

    (@cjohnson26)

    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!

    Thread Starter cjohnson26

    (@cjohnson26)

    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?

    Thread Starter cjohnson26

    (@cjohnson26)

    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.

    Thread Starter cjohnson26

    (@cjohnson26)

    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</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;

    Thread Starter cjohnson26

    (@cjohnson26)

    @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!

    Thread Starter cjohnson26

    (@cjohnson26)

    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

    Thread Starter cjohnson26

    (@cjohnson26)

    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

    Thread Starter cjohnson26

    (@cjohnson26)

    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

    Thread Starter cjohnson26

    (@cjohnson26)

    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?

    Thread Starter cjohnson26

    (@cjohnson26)

    Thanks for the reply Takayuki. It’s https://condensus.com/

    Thread Starter cjohnson26

    (@cjohnson26)

    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</span>’,
    esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),
    esc_html( get_the_author() )
    ),
    sprintf( ‘<!––>%2$s<!––>’,
    esc_url( get_permalink() ),
    $time_string
    )
    );
    }

    Thread Starter cjohnson26

    (@cjohnson26)

    Thanks for the easy fix! Learning wordpress a little more each day.

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