Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #911879

    Hi everyone,
    As a title i add on portfolio sidebar flashlight latest updates widget but when i add new images it does not appear that I have updated anything
    For example i add new images on amphibians page just few days ago but on side bar widget continues to be the date of the page creation (27/01/2018)
    What am I doing wrong?
    Thanks.
    Best,
    T.

    #911957

    Hey Tonci-M,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.

    Best regards,
    Basilis

    #912442

    Hi Basilis,
    I hope I have done everything right, Let me know how things are going.
    Thanks
    Best,
    T.

    #912641

    Hi T,

    I can’t see any login details unfortunately, could you try creating a new user with admin rights and post the login details in private please? That is all we need to be able to log in to your site.

    Best regards,
    Rikard

    #912896

    Ok, let’s try again
    Let me know something
    Best,
    T

    #913483

    Hi Tonci-M,

    Which version of php are you running? Which page can we find the widget on?

    Best regards,
    Victoria

    #913601

    Hi Victoria,
    I think it’s 7.0.27 (default) but there are also others
    You can find the widget on the portfolio page
    Best,
    T.

    #914137

    Hi,

    For example i add new images on amphibians page just few days ago but on side bar widget continues to be the date of the page creation (27/01/2018)

    You’re not doing anything wrong. The widget will display the date the posts were created, not the date they’re modified. If you want it to display the latter, please modify the framework > php > class-framework-widgets.php file, look for this code around line 536.

    echo "<span class='news-time'>".get_the_time($time_format)."</span>";
    

    Replace it with.

    echo "<span class='news-time'>".get_the_modified_date($time_format, $the_id)."</span>";
    

    Best regards,
    Ismael+

    #914501

    Hi Ismael,
    It seems that now the widget works well.
    Thank you very much!

    Best,
    T.

    #914544

    Hi,

    Great! Did you need further assistance or shall we close this thread?

    Best regards,
    Jordan Shannon

    #914574

    Hi,
    Another little thing.
    Would it be possible to get the newly updated page to the top of the list?

    #914721

    Hi,

    Did you select any category in the widget? If you didn’t select a category, edit the same file then look for this code around line 461.

    $new_query = array("posts_per_page"=>$count,"post_type"=>$this->avia_post_type);
    

    Add the “orderby” parameter and then set it to “modified”.

    $new_query = array("orderby"=>"modified","posts_per_page"=>$count,"post_type"=>$this->avia_post_type);
    

    Best regards,
    Ismael

    #914981

    Hi Ismael,
    I changed the parameter you suggested, but only the date changes and the updated page remains in the same place, it does not appear on the top.
    Best,
    T.

    #915268

    Hi,

    We added the parameter on line 494.

    						$new_query = array(	"orderby"=>"modified","posts_per_page"=>$count, 'tax_query' => array(
    														array( 'taxonomy' => $this->avia_term,
    															   'field' => 'id',
    															   'terms' => explode(',', $cat),
    															   'operator' => 'IN')
    															  )
    														);
    

    Best regards,
    Ismael

    #915634

    Hi Ismael,
    Now everything working fine, many thanks!

    Best,
    T.

    #915635

    Hi,

    I’m glad you were able to get this issue corrected. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 16 posts - 1 through 16 (of 16 total)

The topic ‘Flashlight latest portfolio widget’ is closed to new replies.