Este plugin não foi testado com os 3 lançamentos principais mais recentes do WordPress. Ele pode não ser mais mantido ou suportado e pode ter problemas de compatibilidade quando usado com versões mais recentes do WordPress.

DD Last Viewed

Descrição

This plugin contains the lastViewed widget. This widget shows the users recently viewed/visited Posts, Pages, Custom Types and even Terms in a widget. Very nice to use in combination with Woo-commerce!
Using caching plugins? No problem! By 2 easy clicks you can bypass the caching and still get the best performance out of this widget.

The widget is fully customisable:

  • Filter on Types and Terms
  • Set the maximum
  • Set thumbnail on/off
  • Show Content(rich or plain) or Excerpt
  • Set the excerpt length
  • Add links to elements
  • Set cookie lifetime
  • Set cookie same site
  • Set cookie secure
  • Set cookie by PHP or JS
  • load widget with PHP or AJAX

customise the widget template by copy the file “dd-templates/lastviewed-widget.php” from the plugin directory into your theme directory. You can now start customising the widgets template.

If one of the posts with the filtered types or terms gets visited in the front, a cookie sets/updates with an array of visited ids. Each widget has his own cookie, so you can set as many widgets as you want.

Arbitrary section 1

Capturas de tela

Instalação

  1. Upload the dd-lastViewed directory to the /wp-content/plugins/ directory
  2. Ative o plugin por meio do menu “Plugins” no WordPress
  3. customise the widget

OPTIONAL ADVANCED (customise widget template):

  1. Copy dd_templates/widget.php
  2. Paste clipboard in theme folder
  3. Start customising the template

You can use [dd_lastviewed widget_id=”12″] as shortcode to publish the widget inside a page or a post. Do not forget to use the correct id!

Perguntas frequentes

Do you have ideas, questions or issues with LastViewed? Please leave a message in the support forum.

Avaliações

24 setembro, 2020
It does a great job keeping track of the last-viewed posts.
16 julho, 2020
Using this a while on clients sites, really good and great features!
21 maio, 2020 1 resposta
This plugin is so useful for those who are looking a fast and easy solution in one click. I recommend this plugin 100%
19 agosto, 2019
While the Elementor widget doesn’t seem to be working, the shortcode version of this plugin is great and works perfectly. Great job, keep it up!
Leia todas as 26 avaliações

Colaboradores e desenvolvedores

“DD Last Viewed” é um programa de código aberto. As seguintes pessoas contribuíram para este plugin.

Colaboradores

Registro de alterações

6.2.1

  • Fix setCookie for diff php versions > or < 7.3 (options array)

6.2

  • pre-fill post types with ‘post and pages’ if emtpy
  • Fix logged errors
  • Fix saving posttypes

6.1

  • Fix cookie secure option
  • Fix missing style.css.map
  • Set ‘lax'(samesite) by default if https
  • Fix bug visiting same page as the only one set in the cookie

6.0

  • Created advanced cookie settings
  • Extend cookie settings with sameSite options
  • Extend cookie settings with Secure options
  • Activate switch if link is activated
  • Deactivate link if switch is deactivated
  • Aligned styling “Avoid widget caching”
  • Fix styling and js on “accessibility mode”

5.3

  • Refined code
  • Set phpcookie on ‘WP’ hook instead of ‘get_header’ hook
  • Update deprecated e.which to e.key

5.2.1

  • Fix devmode errors “Undefined index”
  • Update CSS

5.2

  • Hide ‘lastViewedContent’ element in widget if no content
  • Load scripts correctly for ELementor by their custom hook

5.1.1

  • Fix FE ajax call ‘ajax_set_cookie_by_js’

5.1

  • Added ‘primary color to hover item select2’
  • Border radius on exclude_ids fixed
  • Fixed Ajax when not logged in

5.0

  • Implemented Widget load by Ajax
  • Implemented set cookie by Javascript
  • Set default cookie lifetime to 365 days
  • Refined code
  • Updated translations
  • Only numbers allowed in Exclude ID’s

4.2

  • Added languages (NL DE FR ES PT CN )
  • Fix styling on ‘/wp-admin/customize.php’
  • Fix Select2 on ‘/wp-admin/customize.php’
  • Make use of select2 for exclude_ids

4.1

  • Checked with woo-commerce
  • Fixed styling overwrites
  • restyled widget in admin

4.0

  • fix select2 bug
  • improve code

3.7

  • UX fix double

when shortcode is not available
* UX fix select 2 bug

3.6

  • Fix shortcode bug which occurs after previous update
  • Add notice in widget form ,while custom template is enabled.

3.5

  • Update the widgets_init hook (register widget) call (php5.3+)

3.4.2

  • Fixed bug with multiple uses of select2

3.4.1

  • Fixed bug if no inline image exist

3.4

  • Use latest Select2 version
  • Update npm/grunt
  • Hide taxonomies which don’t have terms
  • Fix setting correct thumb size first image content

3.3

  • If no featured image, check first post image.

3.2.6

  • Remove the max attribute from the number input

3.2.5

  • fix thumbnail on hover feedback

3.2.4

  • Fix bug thumbnail active

3.2.3

  • Fix bug when not all settings are set

3.2.2

  • Update js
  • fix saving bug

3.2.1

  • Refined Code
  • Refined the template

3.2.0

  • Added the option to set te cookie expire time

3.1.4

  • Fixed bug ‘Undefined index:’
  • Enabled custom template in theme folder (‘THEME/dd-templates/lastviewed-widget.php’)
  • Increase widget cookie lifetime to 365 days

3.0.3

  • Align NPM and added grunt tasks

3.0.2

  • Show widget only when cookie exist
  • Make more unique vars for args
  • Just functions not public

3.0.1

  • Revert array notation from [] to array() to be compatible with old php versions
  • If total is not set use -1 for posts_per_page

3.0

  • Put everything in a class
  • Made new multi-filter for types and terms
  • Refactor code
  • Added “Donate & review”

2.7

  • Add link-button to title, thumb and content

2.6

  • Implement exclude IDs

2.5.2

  • Set cookie by PHP instead of JS
  • Hide H2 element while title is not set
  • Tuned phrases
  • Removed files

2.5.1

  • Fix error with ‘_multiwidget’
  • Avoid shortcode ‘[lastviewed] in order to prevent a loop in a widget with a lastviewed-shortcode 😉

2.5

  • Refined code
  • Get posts by one query
  • Set cookie per widget
  • Fill cookies with id’s of types set in the widget
  • Cookie length set by length in widget
  • Fix shortcode in rich content
  • Added warning in front when options are not set
  • Fix show last id on index

2.3.1

  • Added rich/plain radio input

2.3

  • Added choice content/excerpt
  • Added full text or truncated
  • Set max cookie to 40

2.2

  • Add select thumb-size

2.1.2

  • Fix Strict standards widget

2.1.1

  • Fix filenames

2.1

  • Fix typo

2.0

  • Added switches voor settings
  • Cleaned up code

1.4

  • Removed tags and shortcodes from content
  • Add clearfix only on listitems with thumb.

1.3

  • Added SASS
  • Added Widget admin Icon
  • Bugfix: hide widget when no type is selected
  • Branding: catch the eye 😉

1.2.2

  • Added pages
  • Added before and after title

1.2.1

  • Cleanup code

1.2

  • Bugfix: removed the debug echo
  • Do not show current visit post in widget

1.1

  • Bugfix: number to show

1.0

  • Cleanup the code
  • Load assets properly

0.9.0

  • Added shortcode to the widgetform for easy use, copy paste.

0.9.0

  • Use the widget inside page or post with shortcode eg. [dd_lastviewed widget_id=”12″]
  • Clean up some code

0.8.1

  • At least posts need to be selected, otherwise this plugin is worthless! 😉
  • At more screenshots

0.8.0

  • Bugfixes
  • solved the warnings when a variable is not set FULLY.
  • Make custom link name
  • Set default title to “Last Viewed”

0.7.3

  • Bugfixes
  • solved the warnings when a variable is not set.

0.7.2

  • Bugfixes

0.7.1

  • Bugfixes