[tpg_get_posts post_type="post" numberposts=3 ]

Python 2.7.12, 3.4 and 3.5 are installed on my Windows 10 computer. Running a test of tkinter in 2.7 works, but the test in either version of Python 3 throws errors:

in Python run import tkinter;tkinter._test()

_tkinter.TclError: Can't find a usable init.tcl in the following directories:
_tkinter.TclError: Can't find a usable tk.tcl in the following directories:

Searching on the errors, there were several references environment variables TK_LIBRARY and TCL_LIBRARY,

set TCL_LIBRARY=C:\Python3\tcl\tcl8.6
set TK_LIBRARY=C:\Python3\tcl\tk8.6

The solution most often found was to copy the contents of the Python3/tcl/ folder to the Python3/Lib folder, but that seems to pollute the Lib folder.

My solution is to create symbolic links in the Lib folder:
as administrator open a console window:

mklink /J c:\Python3\Lib\tcl8.6 c:\Python3\tcl\tcl8.6
mklink /J c:\Python3\Lib\tk8.6 c:\Python3\tcl\tk8.6

So far, this has worked. There are many other folders in the TCL directory, so additional links may be needed.

In release 3.3.0, I added the textdomain to support translations.  This is all new to me and I expected there would be some rough places, but missed a pathing error on the first pass.  This has been corrected with 3.3.1. (read more…)

Version 3.3 of tpg-get-posts has been released.  The changes in this release are in the base product and not the the extension.  Several releases ago the base plugin and extension were ‘decoupled’, so the release numbers will not always match.

Base version 3.3.0,  Extension version 3.2.0

Features and fixes:

  • Add internationalization to support translations
  • Added ability to assign a class to the read-me link
  • Added a notification to update the extension on the main admin page
  • And never ending adjustments to documentation to make it more readable

[tpg_get_posts post_type="tpg_news,tpg_products" ]

This is the product custom post type

this is a sample of the news custom post type