Showing posts with label Widgets. Show all posts
Showing posts with label Widgets. Show all posts

Friday, 6 September 2013

List category posts in Wordpress

List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode. When you're editing a page or post, directly insert the shortcode in your text and the posts will be listed there. The basic usage would be something like this:
[catlist id=1]
[catlist name="news"]
The shortcode accepts a category name or id, the order in which you want the posts to display, and the number of posts to display. You can also display the post author, date, excerpt, custom field values, even the content! The [catlist] shortcode can be used as many times as needed with different arguments on each post/page. You can add a lot more parameters according to what and how you want to show your post's list:
[catlist id=1 numberposts=10]
Please read the instructions to learn what parameters are available and how to use them.
Customization: The different elements to display con be styled with CSS. you can define an HTML tag to wrap the element with, and a CSS class for this tag. Check Other Notes for usage.
Great to use WordPress as a CMS, and create pages with several categories posts.
Widget: It includes a widget which works pretty much the same as the plugin. Just add as many widgets as you want, and select all the available options from the Appearence > Widgets page.
Please, read the information on Other Notes and Changelog to be aware of new functionality, and improvements to the plugin.
Support the plugin
If you've found the plugin useful, consider making a donation via PayPal or visit my Amazon Wishlist for books or comic books :).
Development
I've moved the development to GitHub. Fork it, code, make a pull request, suggest improvements, etc. over there. I dream of the day all of the WordPress plugins will be hosted on Github :)

Thursday, 1 August 2013

Moodle Course list in Wordpress

This plugin will allow you to display a list of Moodle courses for a specific user of Moodle.

http://wordpress.org/plugins/moodle-course-list-widget/

This section describes how to install the plugin and get it working.
Install: 1. Upload moodle-courselist-widget.php to the /wp-content/plugins/ directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Place the new Moodle Courselist widget into your theme's sidebar.
IMPORTANT: You will need to edit the code of this plugin in 3 places in order for this to work properly. This will most likely involve a web administrator as you will need database connection settings for Moodle. This plugin is designed for use by educational institutions. Changes are clearly commented in the code with //CHANGE.
Here are the code changes you must edit:
Line 35 (Your Moodle Site URL)- action="http://yourmoodlesiteurl.com/login/index.php
Line 44 (Moodle Database Connection)- mysql_connect("localhost","MySQLusername","MYSQLpassword");
Line 76 (Your Moodle Site URL)- "http://yourmoodlesiteurl.com/course/view.php?id='.$course->courseid.'"