646 reputation
48
bio website
location
age
visits member for 3 years
seen Apr 3 at 16:50

Mar
26
comment Using wp_trim_excerpt to get the_excerpt() outside the loop
This should now be the accepted answer. No need to write your own trim functions...
Dec
14
comment wordpress Search function is not working
The input field works now, but the search brings back no results for terms which should probably have a match.
Dec
7
comment How can I (semi) automate a database export and import to a different location?
Yes, but it just occurs to me that you need to take care of the URLs you've set in your wordpress installation. On your dev machine they might be "localhost", but on your live machine they will be "www.example.com". You can do this using search and replace in sql dump file (or using this handy tool: interconnectit.com/124/…
Dec
7
comment How does Wordpress insert Paragraphs in posts
Wow, I hadn't realised this. That would rather inefficient to me. I would have thought the opposite would be better: remove them on edit. Not that it matters really I guess.
Dec
7
comment How can I (semi) automate a database export and import to a different location?
Well, if the live database hasn't really changed content wise (including user comments) then you could just drop it and recreate it using the dump from the dev database. This will work fine as long as you are clear that the live site will be overwritten with the dev site periodically
Dec
7
comment URL rewriting for WordPress Network (Multisite) subsite
I've updated my answer with some mod_rewrite info. Note sure if it helps, but worth giving it a go.
Dec
7
comment How can I (semi) automate a database export and import to a different location?
Note: for moving posts between sites, you can always use Wordpress's export/import feature. Also, you might well be able to find plugins or online services to achieve what you want - I don't know.
Dec
7
comment How can I (semi) automate a database export and import to a different location?
Scripting changes to your database STRUCTURE would be a set of SQL statements (eg ALTER TABLE). The problem with scripting changes to CONTENT, eg adding a post, is that you need to know ecxactly what changes to the database Wordpress is making and therefore not really practical. Further if you added a post to your dev site, say a post with ID 100. It might be that that post ID is already in the live site, so you can't simply script that as SQL.
Dec
7
comment URL rewriting for WordPress Network (Multisite) subsite
No, I guess not. You should be able to achieve this using mod_rewrite though. I'll have a think about it.
Dec
7
comment Load posts from external source if not found in database
Having thought about this, you might want to look into Custom Post types. This will ensure that the post IS in the database, but will give you hooks into how the post is retrieved and processed for that specific type of post only.
Dec
7
comment Load posts from external source if not found in database
I don't know wordpress well enough to say if this is possible, but my guess this you will run into all sorts of problems. A "post" is like the fundamental object in Wordpress and for a given Post it expects there to be an item in the database.
Dec
5
comment Current class hook on generated list
Also, wich theme are you using?
Dec
5
comment Admin Bar below footer as unstyled list of links
Please accept the answer if this fixed it for you. Thanks :-)
Dec
5
comment Transferring from “Populate” CMS to WordPress
This seems like the way to go if you are really locked out. You could also use a copy such as this one: httrack.com to prevent you having to save each page individually.
Dec
4
comment How do I profit from a Plugin?
You could link the API to one (or multiple - depending on licence purchased) domain name. This might then give the user one year's "free" upgrades. The exact details of "securing" the API key, I wouldn't be sure about, but I guess you would store a list of api keys against domain names on the validating server.
Dec
3
comment Changing the pagination URL format
Why would you want that? Both URLs contain the same info ad the first one is considered to be more user and search engine friendly.
Dec
2
comment Is there a way to share content amongst wordpress sites
Not really looking to do this via RSS feeds. The posts should appear as being part of the blog they are indexed in - possibly being indexed in multiple places in multiple blogs.
Dec
1
comment Allow guests to save favourite pages?
I appreciate this something some sites provide, but isn't it just recreating existing browser functionality? I never saw the point much in that - although that might just be me.
Nov
29
comment Newsletter, mailingList and contact management
You could just use MailChimp for the mailing part. That's free for up to 2000 emails. Alternative might be Campaign Monitor, but that's not free. Both might have wordpress plugins to help integration.
Nov
29
comment Disable Admin Bar for specific content
I just saw your own comment above. You can check for the post type by using the get_post_type() function: codex.wordpress.org/Function_Reference/get_post_type