Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter brandonchance

    (@brandonchance)

    The “Date Posted” date. And I just found it in main.php, now I’m just looking for where I need to put it for it to show up on the frontend

    Thread Starter brandonchance

    (@brandonchance)

    Bump

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, I am not sure I understand your question correctly. Can you provide more information please.

    Thank you

    Thread Starter brandonchance

    (@brandonchance)

    Thanks for the response! I want the date that the item was uploaded/published to appear on the actual website.

    This date:
    https://drive.google.com/file/d/0B6C2-SqaSCluNGRnQ3lXRktoMTg/view?usp=sharing

    But I need it to appear on the website, not just the admin panel

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi you might like to read the following documentation.

    Thread Starter brandonchance

    (@brandonchance)

    I think I found the frontend code:

    function handle_sdm_download_via_direct_post() {
        if (isset($_REQUEST['smd_process_download']) && $_REQUEST['smd_process_download'] == '1') {
            global $wpdb;
            $download_id = strip_tags($_REQUEST['download_id']);
            $download_title = get_the_title($download_id);
            $download_link = get_post_meta($download_id, 'sdm_upload', true);

    So would I add :

    $download_date = get_the_date( $format, $post_id );

    Plugin Contributor mbrsolution

    (@mbrsolution)

    You can try that code, if that does not work the link I provided above will help you. If not you can always search in www.remarpro.com.

    Thread Starter brandonchance

    (@brandonchance)

    Thanks again @mbrsolution, I appreciate you pointing me to the documentation as it did help some! Unfortunately, I believe the answer is a mix between PHP and jQuery, which the link doesn’t cover, but I could definitely be wrong.

    I’ve found the areas that I believe to be key in making this happen, but I haven’t been successful yet. Still looking for more insight on the subject!

    Plugin Contributor mbrsolution

    (@mbrsolution)

    If you ever run into problems in WordPress when adding custom code, you can always try the following website Stackoverflow. There are lots of teckies there which help many times with PHP, CSS and more type of issues?

    Good luck

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How To Add Upload Date To Frontend?’ is closed to new replies.