-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Save 83% on 3-Years of WP Buzz Managed WordPress Hosting
By News Staff,
- 0 replies
- 7 views
-
WingetUI gets support for Widgets to easily update/install packages, PowerShell Gallery too
By hellowalkman,
- microsoft
- windows 11
- (and 8 more)
- 4 replies
- 5 views
-
Google announces a raft of new Android productivity features
By Chasethebase,
- 1 reply
- 3 views
-
WordPress gets an AI assistant that can write blog posts, correct grammar, translate content
By Aditya Tiwari,
- wordpress
- automattic
- (and 1 more)
- 4 replies
- 4 views
-
Twitter gives academics 30 days to delete Twitter data or pay $42,000 a month for API access
By Anushe Fawaz,
- 7 replies
- 3 views
-
Question
whitebread
I have a WordPress blog, and a IP.Board (Invision Power Board) forum. I want to display the 5 most recent forum posts in a widget on the front page (kind of like how Neowin does).
In the database, there is a table called "Topics" (which lists the forum posts). So, the SQL statement would presumably look something like:
So that seems to be the easy part. What I need help with is: how do I actually create the widget? I have experience with PHP and working with MySQL databases, but I've never created a custom widget before. Do I just create code that echos the last 5 posts, then put the PHP file in the plug-ins directory?
Link to comment
Share on other sites
0 answers to this question
Recommended Posts