TTWordPress
DEPRECIATED - use https://github.com/kmonaghan/CBPWordPress instead - An example iPhone app which hooks into a WordPress blog for its content.
Install / Use
/learn @kmonaghan/TTWordPressREADME
DEPRECIATED use KMWordPress instead TTWordPress
TTWordPress is a library I wrote to easily display a WordPress blog in an iOS app. I originally wrote it for the Visionary.ie app (http://itunes.apple.com/ie/app/visionary-photography/id427412034?mt=8) and was then able to expand on that to create the Broadsheet.ie app (http://itunes.apple.com/ie/app/broadsheet-ie/id413093424?mt=8). Since I found it useful, I thought I'd release it into the wild and see what happens.
To provide the data from a WordPress blog is a nice machine readable format, the excellent JSON API (http://wordpress.org/extend/plugins/json-api/) plugin is used. Obviously, it needs to be installed for the iOS to be able to retrieve anything but that's a trivial matter. If you want users to be able to comment on posts, you need to activate the 'Respond' controller in the API settings. On the iOS side of things, the library uses Three20 (http://three20.info/) for the consuming the JSON and displaying the information in tables.
Usage
To use the library in your own app, you first need to add Three20 to your project (if you're not already using it). Open the example TTWordPress project and copy the WordPress folder and all its contents to your project.
To point the library at your own blog, you need to edit the following line in TTWordPress.h:
#define WP_BASE_URL @"http://ttwordpress.karlmonaghan.com/"
In this file, you can also change the default title for the latest posts view and the way dates are displayed for posts and comments.
Then in your AppDelegate, add the following includes:
#import "WordPressBlogViewController.h"
#import "WordPressAddCommentViewController.h"
Then add the following lines:
[map from:@"tt://examplepostlist" toSharedViewController:[WordPressBlogViewController class]];
[map from:@"tt://blog/author/(initWithAuthorId:)" toViewController:[WordPressBlogViewController class]];
[map from:@"tt://blog/category/(initWithCategoryId:)" toViewController:[WordPressBlogViewController class]];
[map from:@"tt://blog/post/comment/(initWithPostId:)" toModalViewController:[WordPressAddCommentViewController class]];
The first line sets the path to a view controller that will list the latest posts from your blog, the second shows the posts belong to a particular author, the third from a particular category and the fourth is the modal pop up for making a comment. The assumption here is that the list of posts from your blog will be a tab in your app hence being a shared view controller as opposed to the other two which are created and destroyed on demand.
The final step is to call the latest post view controller from somewhere. In the sample project, it's added to the UITabViewController. Once you've done that, compile and run your app and you should see your blog posts.
The code is available via a Git repo at <a href="https://github.com/kmonaghan/TTWordPress">https://github.com/kmonaghan/TTWordPress</a>.
If you do use it, I'd love to hear from you: http://www.karlmonaghan.com/contact/.
The icon used is from the excellent Glyphish (http://glyphish.com/) set.
Related Skills
qqbot-channel
349.2kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.3k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
349.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
arscontexta
3.0kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
