An easy to use shortcode for wordpress to display recent posts headlines and toggle excerpt
simple usage:
[recentnews]
with options:
[recentnews count=10]
working sample
-
SensorLogger 0.1.1 for Owncloud out now!
Get the latest version 0.1.1 of SensorLogger for Owncloud now!
Latest Version: 0.1.1
Release Date: 16.12.2021
Release Notes:
- Added persistent Dashboard widgets. Resize and Position.
- Several Bugfixes and code improvements
Avaiable at
https://marketplace.owncloud.com/apps/sensorlogger
https://github.com/alexstocker/sensorlogger
Launching Chitubox on Ubuntu
- Chitubox 1.8.1
- Ubuntu 20.04
Error on launching
Related to
./AppRun: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found (required by ./AppRun)
Fix this problem by
Create a starter script
- launch terminal
- change to the directory where you extracted CHITUBOX 1.8.1 to
for instance
cd Software/CHITBOX\ V1.8.1/
create a new file
touch App.sh
open this file with an editor of your choice (gedit, mc, vi, pico, nano ...)
past this code into App.sh and save file
#!/bin/sh export LD_LIBRARY_PATH=lib ./CHITUBOX
make this file executable with
chmod a+x App.sh
launch CHITUBOX from commandline by
./App.sh
Ubuntu 20.04 hibernate on lid close
Howto Enable hibernation mode on Ubuntu 20.04 to hibernate on lid close.
Please notice that Midnight Commander (mcedit) is used for editing files. You may use gedit, pico, vi, vim or what ever editor you are familiar with too.
To save file changes using mcedit, press [F2].
To exit mcedit press [Esc]you@home:$ sudo swapoff /swapfile you@home:$ sudo dd if=/dev/zero of=/swapfile bs=$(cat /proc/meminfo | grep MemTotal | grep -oh '[0-9]*') count=1024 conv=notrunc you@home:$ sudo mkswap /swapfile you@home:$ sudo swapon /swapfile you@home:$ sudo findmnt -no SOURCE,UUID -T /swapfile /dev/sda5 10101a01-cfa1-01e0-bb1f-0e101ea010d0
!Note UUID!
you@home:$ sudo apt -y install uswsusp you@home:$ sudo dpkg-reconfigure -pmedium uswsusp # Answer "Yes" to continue without swap space # Select "/dev/disk/by-uuid/10101a01-cfa1-01e0-bb1f-0e101ea010d0" replace the UUID with the result from the previous findmnt command # Encrypt: "No"
you@home:$ sudo systemctl edit systemd-hibernate.service
[Service] ExecStart= ExecStartPre=-/bin/run-parts -v -a pre /lib/systemd/system-sleep ExecStart=/usr/sbin/s2disk ExecStartPost=-/bin/run-parts -v --reverse -a post /lib/systemd/system-sleep
you@home:$ sudo swap-offset /swapfile resume offset = 34818
!Note offset!
you@home:$ sudo mcedit /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=10101a01-cfa1-01e0-bb1f-0e101ea010d0 resume_offset=34818 quiet splash"
you@home:$ sudo update-grub
you@home:$ sudo mcedit /etc/initramfs-tools/conf.d/resume
RESUME=UUID=10101a01-cfa1-01e0-bb1f-0e101ea010d0 resume_offset=34816
you@home:$ sudo update-initramfs -u -k all
you@home:$ sudo systemctl hibernate
you@home:$ sudo mcedit /etc/systemd/logind.conf
## Find line # HandleLidSwitch=suspend ## Uncomment and change to HandleLidSwitch=hibernate
you@home:$ sudo systemctl restart systemd-logind.service
Special thanx @rephlex https://rephlex.de/blog/2019/12/27/how-to-hibernate-and-resume-from-swap-file-in-ubuntu-20-04-using-full-disk-encryption/
Download: recentnews.zip (20KB)
[Usage]
- Upload
- Activate
- Configure default count of posts/news headlines to display
- Insert shortcode to your posts
ELExGspot | elexgpunkt@html5live.at
1 thought on “WordPress shortcode plugin to list recent posts”