Giter VIP home page Giter VIP logo

wp-last-modified-info's Introduction

Hi 👋, I'm Sayan Datta

A Passionate Developer from India

iamsayan

im_sayaan

  • 💬 Ask me about WordPress, Gutenberg

  • 📫 How to reach me [email protected]

  • ⚡ Fun fact My perfect day would start with code

Connect with me:

im_sayaan meetsayan iamsayaan

Languages and Tools:

bootstrap bulma css3 firebase git gulp html5 javascript materialize mysql nextjs php react sass webpack

 iamsayan

wp-last-modified-info's People

Contributors

dependabot[bot] avatar iamsayan avatar yoren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

wp-last-modified-info's Issues

Using Elementor Blog Object - Last Modified info not available

Sayan,

We're using your plugin with Elementor & noticing when using Elementor's built in blog object that we're unable to choose your last modified info as a metadata object. ie: display your date/time under our blog post. I see in the support forum we are not alone. Any likelyhood you might be able to remedy that in the near future? I'm happy to collaborate so you can see exactly what I mean..

Zoom or screen grabs are available of what I see in Elementor.. just ask! Thanks!

Stopped working

Returning null on WP.com site. Last known working on Nov 10th, 2021

  • WP v5.8.2
  • WPLMI v1.7.7

Using machine-readable dynamic tag for `<time datetime="">`

I was going to use the <time> tag with the datetime attribute in the HTML template, but there is no tag for a machine-readable version of the modified date. I could manually change the formatting to be so, but then I'd lose the custom formatting that I want to display.

Dashboard Widget Timestamp issue

  • In Dashboard Widget, Posts are showing publish time instead of Modified date.
  • Also nonce check is missing in Dashboard widget.

Frontend posts sorted by date modified

We have the settings like so:
image

Despite this, frontend posts are being sorted by post_modified instead of post_date.

The workaround was to go to the settings page and click Save Settings, which forced a save of the settings.

I suspect the bug is here:

if ( ! $this->is_equal( 'default_sort_order', 'default' ) ) {
	if ( ! is_admin() && $query->is_main_query() ) {
	    if ( $query->is_home() || $query->is_category() || $query->is_tag() ) {
	    	$query->set( 'orderby', 'modified' );
	    	$query->set( 'order', $front_order );
		}
	}
}

If $this->get_data( 'lmt_' . $name ) returns an empty string, it says "oh, that's not the default, let's sort by date modified".

Adding a nonempty check would probably fix it:

if ( $this->get_data( 'lmt_default_sort_order' ) && ! $this->is_equal( 'default_sort_order', 'default' ) ) {

Imporvements

Code Improvements:

  1. Allow Toogle Disable Update Option for all post types and posts with future date.
  2. Optimize codebase.

Issue with Replace Published Date display mode

Hi there,

I'm trying to use the Replace Published Date mode without replacing the original author's name. However, the plugin doesn't seem to work at all or make any changes to my posts whatsoever. You can see how the plugin settings as I set them up below. Thanks!

Screenshot 2024-03-21 at 13 55 48

WP Backend Error

hi, i have after the update a Backend Error:

TypeError: (0 , d.getSettings) is not a function
    at s (.../wp-content/plugins/wp-last-modified-info/assets/block-editor/build/index.js?ver=c4ca624fc6f55caf48e7:1:188)
    at we (.../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:84:293)
    at zj (.../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:226:496)
    at Th (.../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:223)
    at tj (../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:152)
    at Te (../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146:151)
    at ../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61:68
    at unstable_runWithPriority (../wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25:260)
    at Da (.../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60:280)
    at Pg (.../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61:14)

After i disable the plugin it works.

WP Ver.: 5.8.9

Thanks

Possibility to show published date as well

Detail Requirement:

  • To be used with shortcode
  • Show 'Published On Dec 19, 2019' if not updated or updated within set gap. 'Published On' being the default text.
  • Otherwise show 'Updated On Dec 19, 2019'. 'Updated On' is the default text.

I think it is already possible for themes whose template is supported, WP Last Modified Info replaces the existing post date that comes from the theme.

I need to insert it via shortcode, it can be two shortcodes (published & modified) but only one should be visible based on settings.

Update:
I made it work via replacement Text or HTML Replacement. Minor problem I noticed is that it requires to match the exact number of spaces as well. May be we can clean up a bit on that.
Of course, placing publish date from plugin itself would have been much elegant.

Error return $this->wrapper error not exist

I'm getting an error when tried to open one of pages
PHP Fatal error: Uncaught Error: Call to undefined method Wplmi\Core\Frontend\Shortcode::wrapper();

In Shortcode.php file there is a line
return $this->wrapper( $template, $get_post->ID, true, false, 'sc' );

But there is no wrapper function in Shortcode.php

Google search results do not show modified date

Good day! I am using your plugin, but the problem is that Google does not display the modified date in its search results for my articles. I am using All In One SEO Pack plugin and WP version 5.3. Compatibility Mode selected in settings

How to replace post published date with post modified info?

Hi, this is a nice plugin but I would really like to get the info inline with the other post information (author, category, comments number, etc.). Is this possible?

I read that it "Allows you to replace post published date with post modified info." so that suggests it should be possible. But I can't see how in the Settings.

Edit date

I have noticed that displaying the administration panel in a language other than English, despite manually changing the post modification date and clicking the "Update" button, the edited date still displays as January instead of the month I have set. Additionally, the date format is incorrect, showing as month - day - year instead of year - month - day.

Zrzut ekranu 2023-10-30 124851

image

Posts list messed up

When enabling the "Last Modified" column in the WP posts list (enabled by default), the post title gets crammed into a single character column. Hard to explain, here is a screenshot:

Posts ‹ Indeedly — WordPress 2019-12-01 23-48-35

Look at the title column. When disabling "Last Modified", everything is back to normal.

PHP Warning: Undefined property: stdClass::

https://wordpress.org/support/topic/php-warning-undefined-property-stdclass/

Using WordPress 6.0.1 and PHP 8.0.17

[27-Jul-2022 05:46:56 UTC] PHP Warning: Undefined property: stdClass::$requires in /bitnami/wordpress/wp-content/plugins/wp-last-modified-info/inc/Core/Backend/PluginsData.php on line 135
[27-Jul-2022 05:46:56 UTC] PHP Warning: Undefined property: stdClass::$tested in /bitnami/wordpress/wp-content/plugins/wp-last-modified-info/inc/Core/Backend/PluginsData.php on line 136
[27-Jul-2022 05:46:56 UTC] PHP Warning: Undefined property: stdClass::$last_updated in /bitnami/wordpress/wp-content/plugins/wp-last-modified-info/inc/Core/Backend/PluginsData.php on line 137
[27-Jul-2022 05:47:06 UTC] PHP Warning: Undefined property: stdClass::$requires in /bitnami/wordpress/wp-content/plugins/wp-last-modified-info/inc/Core/Backend/PluginsData.php on line 135
[27-Jul-2022 05:47:06 UTC] PHP Warning: Undefined property: stdClass::$tested in /bitnami/wordpress/wp-content/plugins/wp-last-modified-info/inc/Core/Backend/PluginsData.php on line 136
[27-Jul-2022 05:47:06 UTC] PHP Warning: Undefined property: stdClass::$last_updated in /bitnami/wordpress/wp-content/plugins/wp-last-modified-info/inc/Core/Backend/PluginsData.php on line 137
[27-Jul-2022 05:47:09 UTC] PHP Warning: Undefined property: stdClass::$requires in /bitnami/wordpress/wp-content/plugins/wp-last-modified-info/inc/Core/Backend/PluginsData.php on line 135
[27-Jul-2022 05:47:09 UTC] PHP Warning: Undefined property: stdClass::$tested in /bitnami/wordpress/wp-content/plugins/wp-last-modified-info/inc/Core/Backend/PluginsData.php on line 136
[27-Jul-2022 05:47:09 UTC] PHP Warning: Undefined property: stdClass::$last_updated in /bitnami/wordpress/wp-content/plugins/wp-last-modified-info/inc/Core/Backend/PluginsData.php on line 137
[27-Jul-2022 05:47:19 UTC] PHP Warning: Undefined property: stdClass::$version in /bitnami/wordpress/wp-content/plugins/wp-last-modified-info/inc/Core/Backend/PluginsData.php on line 134
[27-Jul-2022 05:47:19 UTC] PHP Warning: Undefined property: stdClass::$requires in /bitnami/wordpress/wp-content/plugins/wp-last-modified-info/inc/Core/Backend/PluginsData.php on line 135

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.