Tag Info

Hot answers tagged

36

Welcome to WordPress stack exchange! Just yesterday I created WP-Markdown, which enables Markdown on your posts. It also provides the same interface as this website (the toolbar, and live preview) - however, currently only for comments and bbPress forums (if enabled). That said, (since it would be straightforward to do), I am planning on adding an option ...


16

Hi @user2041: Clearly as you know you need to modify the search that's performed which you can do by modifying the values in the instance of the WP_User_Search class used for the search (you can find the source code at /wp-admin/includes/user.php if you'd like to study it.) The WP_User_Search Object Here's what a print_r() of that object looks like with ...


14

Plugins: Question and Answer Forum Plugin WP-Answers Plugin Themes: AskIt Instant Q&A


11

I have used both plugins. I tested them both extensively and have built and delivered client websites on both platforms. My tests were conducted over a year ago before I went with my preferred (Shopp) but here is what I found. WP Commerce at the time had buggy code, poorly written markup and many elements were not given classes/id's making it hard to format ...


11

I think something like this you would be best writing yourself. Take a look at: http://www.catalysthomes.co.uk/homes-for-sale/ Properties are loaded into a CPT and I have my own custom search in the sidebar. Of that search its searching a number of things such as taxonomies, custom fields and ordering by date price etc. So how do I achieve this? I submit ...


8

I created two plugins that together should solve my needs. They are currently in an early alpha stage, and all comments are welcome. The base plugin is an On-Demand Resizer. This plugins monitors requests for non-existing files in the uploads dir, and creates images of the requested size if needed. For example, image-200x100.jpg will create and return ...


8

The code is still a mess, but it seems to work, even on IE 8. I plan to release it in the repository, but in the meantime you can play with my current version. To access it you click the "Edit Image" when adding or editing an image, it replaces the usual image editor (they are very hard to combine). Since most of the admin area uses the regular thumbnail and ...


8

I'm not sure about the version of Markdown, but here's some plugins I use markdown-for-wordpress-and-bbpress to get wordpress to render posts and comments in markdown format. For editors, I prefer markdown-quicktags. It has a bunch of auto-complete features, and seems to be the most actively updated markdown editor plugin. You might also try wmd-admin ...


8

Create a custom post type named Gig and WordPress will take care of the UI creation, then all that is left for you is to add a metabox with the fields you want(date, venue, about). here is a simple step by step: First register your gig post type: //register your custom post type gig add_action( 'init', 'register_cpt_gig' ); function register_cpt_gig() { ...


8

I highly recommend WooCommerce. Those guys are brilliant. It's based off of Jigoshop another great solution. To me, though, WC is one of, if not, the best solutions for WP e-commerce. Great support. Great themes. Uber easy to integrate with a custom theme as well.


7

I always use the Theme Unit Test that Theme Reviewers use to evaluate themes for the Repo. It's got pretty much everything you need to style/worry about. And if I need to create batch content in a different way, then I use WP Dummy Content


7

You can delete files per plugin if the server’s PHP user has write permissions. The trick is to delete it immediately on activation. Here is a basic sample code: <?php # -*- coding: utf-8 -*- /** * Plugin Name: Delete .htaccess * Description: Deletes the .htaccess file on activation, deactivates itself then. * Plugin URI: ...


7

The active plugins are stored in the 'active_plugins' option, like this: array( 'akismet/akismet.php', 'hello-dolly.php', ); On each page load, WP just loops through that array and includes those files. It's up to each plugin to include any additional files that it may have. When a plugin is deactivated, it's just removed from that array. On the next ...


7

There is an easier way to get the page-creation dialog to appear. Simply go to WooCommerce > Pages and unset all of the select boxes for pages (including the shop base option). Then if you de-activate and re-activate it will ask you whether or not you want to install the pages.


6

once up a time i did a client project where i had to have archives by first letter. thinking back i'm wondering if shouldn't have just created a hidden taxonomy and then saved the first letter as a term in that taxonomy. anyway, here's what i actually did: /* * Function Create Array of Letters that have post titles (for archive) */ /* When the post ...


6

Decided to entertain the idea. Adapted from my snippet that changes anchors to collapsed domain names. Little too verbose, but seems to work. add_filter( 'the_content', 'anchors_to_page_titles' ); function anchors_to_page_titles( $content ) { preg_match_all( '/<a.*?href="(.*?)".*?>(.*?)<\/a>/', $content, $matches ); array_shift( ...


5

WP e-Commerce is probably the best you are going to get while still keeping within the confines of WordPress. Keep in mind WordPress was designed originally for blogging, but it has expanded to do so much more. For a really big store it is probably a good idea to go to dedicated store software like Magento or OS Commerce. If you want to start out with WP ...


5

I'm developer of WP-QuickLaTeX plugin. It is developed for mathematicians driven by feeling that math doesn't deserve to be published with poor quality on the Web. In fact, besides correct formula positioning and meaningful error messages, WP-QuickLaTeX can store images on a local server too. How to do that is explained on WP-QuickLaTeX home page: "If ...


5

I like this idea from wprecipes.com. It is a very lightweight solution. add_shortcode( 'note', 'sc_note' ); function sc_note( $atts, $content = null ) { if ( current_user_can( 'publish_posts' ) ) return '<div class="note">'.$content.'</div>'; return ''; } It allows you to use the [note]...[/note] shortcode to enter private ...


5

You're going to have to go with some plugins. The Wordpress page editor is dog slow. Throw more resources at it and/or disable some functions from showing under the "Screen Options" tab. It should not really be slow unless your have a ton of people working on a ton of pages at same time, if you can clarify what/why it is slow. You can't drag and drop ...


5

You can check database function for database here http://codex.wordpress.org/Function_Reference/wpdb_Class . For the table prefix matter you should use $wpdb->prefix . 'enam' and it will return the table prefix. Just add the table name with this. So the total code would be : $yourtablename = $wpdb->prefix . 'enam'; so your total code could be ...


5

To make that part of my existing site, I'd use custom post type, Say a post type as QA and registered users can do post( ask questions) and others can comment(give answers). Using the Roles and Capability feature of wordpress we can create moderators/editors/users for question answer section. We can configure wordpress to accept posts of that post-type ...


4

You can use the get_comments function to retrieve comments from a specific user. $comments = get_comments( array( 'user_id' => 1 ) ); foreach( $comments as $comment ) { $post_id = $comment->comment_post_ID; $post = get_post( $post_id ); setup_postdata( $post ); echo '<a href="' . get_permalink() . '">' . get_the_title() . ...


4

You can perform a combination of things to accomplish a smaller file size. Let me guide you through it. Firstly, you could add custom image sizes and adjust the dimensions to the very smallest for their purpose. Put the following in your functions file: function my_insert_custom_image_sizes( $sizes ) { // get the custom image sizes global ...


4

Use Antispam Bee. It is free, doesn’t phone home, and it works surprisingly well as long as you dont change the comment form too much (you have to test it). Just make sure you disable the mail notification for spam comments. :)


4

I'd look into qTranslate. I haven't ever used it, but it's the only free alternative to WPML that I've ever seen. That being said, I'd suggest you just pony up the $30-80 for WPML. It's by far the best-maintained and cleanest multilingual plugin you can get and it's absolutely dirt cheap, considering what you get. And with their (very reasonable) pricing ...


4

From your comment it looks like you almost got it, Plugins that add something under your content usually use the_content filter by calling a function using add_filter for example outbarin plugin calls it like this: add_filter('the_content', 'outbrain_display'); so the way your can order them is by passing the priority parameter ...


4

My opinion may not be totally fair, as I haven't tried both lately. But I used podpress for a while. THe problem was that every time WP did a major upgrade, podpress would quit working. I'm using podcastnig plugins for DJ music hosting on rvoodoo.com. Downtime sucks for my artists. So after about a year of having it break (once for many months) the ...


4

These can be nicely done with WordPress using custom post type for link submission, so then the rest becomes very easy using a few plugins: Voting - CMS Vote Up Social CMS News will handle the voting. Easy link submission - simple custom front end post form would do the job (ex: here or you can use plugins like Mini TDO, Gravity forms... Member creation ...


4

There's a separate Class as DB layer for this: The WP User Query Class. If you want to extend the search functionality, a possible option is to alter the query before you output the results on your search.php template. There's a tutorial/how-to over here. If you need additional fields for your users, you can extend the profile easily. See here for a ...



Only top voted, non community-wiki answers of a minimum length are eligible