question stringlengths 0 34.8k | answer stringlengths 0 28.3k | title stringlengths 7 150 | forum_tag stringclasses 12
values |
|---|---|---|---|
I have 3 categories with each 15 posts, I want to do ONE query to the db bringing only 5 first posts for each category, how can I do it? <code> $q = new WP_Query(array( 'post__in' => array(2,4,8), 'posts_per_page' => **FIRST_5_OF_EACH_CAT** )); </code> In case its not possible, what is more efficient, getting all... | What you want is possible but will require you to delve into SQL which I like to avoid whenever possible (not because I don't know it, I'm an advance SQL developer, but because in WordPress you want to use the API whenever possible to minimize future compatibility problems related to future potential database structure... | Using WP_Query to Query Multiple Categories with Limited Posts Per Category? | wordpress |
what is option_name on database that store the information of current initiate widget in frontend sidebar ? | Solved. What EAmann said is right. The problem is in the configuration of the widget system in WordPress. For every multi-instance widget such as text, The information is stored in a different option name where the value of every widget store in a serialized manner. The trick is about how we store the serialized text w... | what is option_name on database that store the information of current initiate widget in frontend sidebar? | wordpress |
Sometimes it might be necessary to include frequently-changing content in a theme, but themes take some time to modify, it may also be necessary to let a non-technical user maintain some content that appears on more than one page. Is it possible (without heavily impacting performance) to include a post in a theme? | You can but I think it's far more easier for you theme to add a sidebar and then place a text-widget (or any other widget) inside there because that's far more flexible. What you describe I did for some sites longer ago. You can just load the post and display it. I used <code> query_posts() </code> to get the post(s) a... | How can I include a post in a theme? | wordpress |
I am using a WordPress theme which has just header and footer. I would like to continue using it by changing the width and adding side bars. Could anyone help me to change the width (to fit to the screen) of the theme. Does anybody have an idea on how to add sidebars to this theme? ========== Sorry for not making clear... | Generally you can change the width from <code> style.css </code> file, which is located in the themes directory ( use firebug to determine the element ). For adding sidebars... use this tutorial . | Is there possibility to Customize the present theme adding sidebars | wordpress |
How can you have it so that the site's home page will only show the first X (let's say 300) words of the post? But without using "more" tag, or hand filled excerpts? I am looking for a plugin/hack for WP 2.9 and onward. I came across several solutions so far, but am hoping for a recommended solution. Challenges I came ... | Changing the word count on the home page is easy: <code> if( is_home() ) add_filter( 'excerpt_length', create_function( '', 'return 300;' ) ); </code> Just replicate that code and change the conditional check to add this to other pages. The other option is to just insert the code on the template page ( <code> home.php ... | How to only show the first X words (from each post) on the home page? | wordpress |
What are the options for Content Distribution Networks for use with WordPress ? I'd like to their objective pros and cons, their associated plugins or other ways to utilize them, their relative pricing, their appropriate customer profiles/scenarios/use-cases, projects they've been used on if you know of any, and any ot... | Amazon CloudFront Amazon CloudFront is an CDN 'wrapper' around Amazon's S3 service. Distributions can be created from existing S3 buckets, and when a file is requested from it's CloudFront URL it is either served from the nearest edge locations's cache or fetched from S3 and cached. Plugins My CDN - handles URL rewriti... | Options for CDN with WordPress Including Supporting Plugins? | wordpress |
I just ran over a problem to properly use the count of external (meaning no relative or absolute links to my own blog) links on my blog for the Comment Moderation count Option. It's labeled Hold a comment in the queue if it contains [your number here] or more links. (A common characteristic of comment spam is a large n... | Haha, I actually figured out a way to do this. As a plugin, this should work. <code> class JPB_CommentCounter { var $count = 0; function __construct(){ add_filter( 'pre_comment_content', array( $this, 'content' ), 100 ); add_filter( 'comment_max_links_url', array( $this, 'counter' ) ); } function JPB_CommentCounter(){ ... | Number of External Links in Comments - Moderation Option | wordpress |
I recently added the following into my theme's <code> functions.php </code> , in order to load jQuery from the CDN: <code> function my_init_method() { wp_deregister_script('jquery'); wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'); } add_action('init', 'my_init_method'); ... | jQuery is not defined This is because the Google CDN Jquery is not in no-conflict mode. Use the following to make sure the included WordPress no-conflict jquery is used in admin. <code> if( !is_admin()){ wp_deregister_script('jquery'); wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jqu... | Registering jQuery kills admin functions | wordpress |
WordPress is undoubtely very customizable using plugins, but every customization possibility surely has limits defined by the underlying architecture. For those familiar with WP architecture and source code: What would be the effort required to customize the data layer used by WP to use another data store (e.g. files (... | Wordpress is not designed to have a replace-able database layer. Computer Science has some different concepts in it's chest to deal with different databases in the same application on different level of abstraction, Wordpress does not tend to make use of any of such. To say it in more simple words: Not at all. But word... | Is it possible to switch the data layer within WordPress? | wordpress |
Let's say I'm doing a site about cars, and in the main content area of a Page (using a certain template), there are a few paragraphs about a particular car. In the sidebar, are several standard widgets. But I also want a widget with an 'info panel' about the particular car. So what's the sanest way of putting in a per-... | You want the Widget Logic Plugin if you're going to use widgets to do this. However, as you have guessed, this is not the best way to do this. I think the best way to achieve what you want to do is to create a custom widget that accesses the posts information if it detects that it's on the correct page. Something like ... | Custom per-page sidebar widgets .. possible? | wordpress |
You may have learned already to reconfigure your WP3 so that it loads in MU mode, and set it for subdomains. Evidently my Dallas client claims that instead of just subdomains , there are some tricks you can do (cpanel? wp-admin? plugin? config file change?) to make a full domain like example.com for a subdomain, instea... | You can map regular domains to a WordPress Multisite installation using the WordPress MU Domain Mapping plugin . There's also a great tutorial available: WordPress 3.0: Multisite Domain Mapping Tutorial For reference ... stackexchange-url ("I asked a similar question yesterday"). I have a client who hosts multiple blog... | Full Domain Mapping with WP3 in Multiuser Mode | wordpress |
Let's say I have a website about different types of cars. The structure is a little like this: <code> -Home -Cars (shows a submenu with a list of cars, ie Volvo 850, Porsche 911 ) -Volvo 850 overview (the page you get when you click Volvo 850 on the Car page) -Volvo 850 tech spec (the three Volvo pages are shown as sub... | Referencing the wp_list_pages function reference You'll probably need to use the second structure you listed, with one change: <code> -Cars (shows a submenu with a list of cars, ie Volvo 850, Porsche 911 ) -Volvo 850 overview (the page you get when you click Volvo 850 on the Car page) -Volvo 850 tech spec (the three Vo... | Automatically going to the first page in a hierarchy? | wordpress |
(note: this question was originally about Custom Fields, but @MikeSchinkel had a better solution involving Custom Post Types) On my site I have several pages which I want to show the same data in the sidebar. For instance, in a structure like this: <code> -Home -Cars -Volvo 850 overview -Volvo 850 tech spec -Volvo 850 ... | UPDATE: Based upon the update of the question I think I need to explicitly state that what is asked in the question can be done with the answer below, just used custom fields in the "Car" custom post type for each of the items you want displayed on all pages for a given car. If you want to do it simply just hardcode th... | Custom Post Type Data in Sidebar widgets? | wordpress |
As part of a theme for a client, I want to be able to show a custom menu (defined via the admin) in a select box that automatically changes pages after changing the selection . Is there a plugin (or a handy code snippet) that will accomplish this? | Hi @Keith S. : WordPress' new menu system is both wondrous and infinitely frustrating , depending on what you are trying to do and what day of the week it happens to be. :) It's a great idea but far from mature so while it's a feature I applaud I'll be happier when v3.3 or v3.4 of WordPress rolls out and we get a lot m... | Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation? | wordpress |
In your experience, when is the time one needs to start thinking about scaling up? What is the expected performance of a common WordPress installation on a standard Apache web server, without any [performance tweaks or plugins] (stackexchange-url ("Steps to Optimize WordPress in Regard to Server Load?"))? In terms of p... | A lot of this is very subjective and hard to answer because of different server environments, themes, size of database etc. In your experience, when is the time one needs to start thinking about scaling up? If you are concerned with your users experience you should already be practicing sound front end performance tech... | What is the expected limit for acceptable performance of WordPress without any adjustments? | wordpress |
I am having a problem with CPU usage on my website, and am looking for a way to detect (and fix) what is causing it. A topic not covered in stackexchange-url ("this question"). Following on stackexchange-url ("Hakre answer here"), I now realize that what I need to do is profile my PHP calling. Is it reasonable to put t... | Profiling with Profiler-Plugins Not sure exactly what you need to accomplish with your profiling, but WP Tuner (Wordpress Plugin) goes a long way to finding what is slowing down your WP install. It looks at each plugin and give your the memory, CPU time and SQL queries involved. The SQL Monitor (Wordpress Plugin) analy... | Profiling a WordPress Website for Deployment on Shared Hosting? | wordpress |
I've got a spreadsheet where each row of the first column is a question, and the next 4 columns are the optional 4 answers to that question. I want to turn these questions into an online form (like as the one offered by google docs) Is there a form plugin (or another solution) that can offer something like this? | Your best option for a form plugin is Gravity Forms . It has the ability to create multiple choice options via a drop down or check box and you can use conditional logic that will display fields based on choices in previous fields. I highly recommend it. | Creating an online questionnaire form - by Importing the questions from a spreadsheet? | wordpress |
Is there a way to draw the categories listing and highlight the current category being viewed? In addition, it would be great to highlight the current category if a post or page that's assigned to it is being viewed. Any help much appreciated... Here's my current code (I'm excluding the default "uncategorized" category... | The Wordpress Codex for the wp_list_categories tag is actually pretty helpful here - Wordpress is already assigning a class to the < li > tag of the current category. At that point you just need to add an entry to your theme's .css file to apply whatever highlighting you want to that class. For instance: <code> li.c... | Categories Listing with "selected" category highlighted | wordpress |
If I have a couple of different Page templates, how would I show a different collection of sidebar widgets for each of these templates? I'm using the Starkers theme as a starting point. | You will need to create more sidebars in your functions.php file and then edit the page templates to call the sidebar you want. Adding sidebars Go in to your functions.php file. You should see some sidebars already being registered. The code will look something like this: <code> //Adds default sidebar if ( function_exi... | Different widgets on different page templates? | wordpress |
I have some users who are posting to a group blog and are able to cut-and-paste but their pastes include things like: <code> <!– /* Font Definitions */ @font-face {font-family:”Cambria Math”; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variab... | There is a button on the visual text editor built in to WordPress that will strip Microsoft Word formating. It is labeled "Paste From Word" | How can I filter Microsoft Word gunk from pasted content? | wordpress |
I just finished a tutorial that told me to create my <code> header.php </code> without closing a tag at the bottom of the included file. Now while I realize that in anyone of the parent files which includes <code> header.php </code> it includes the closing tag; this really goes against my better judgement as a front-en... | Well, that tutorial is pretty old and out of date. It was written for WordPress 2.0; 10 major releases ago. The short answer is: it's done that way because it's the best way to do it. It's the fastest/simplest way to separate content from design and give all the control to you, the theme developer. If you don't want to... | Wordpress Theme Development Seemingly Awful Partitioning of Includes? | wordpress |
I have some utility categories that are only used by my theme. To help separate these categories I place them all as children of uncategorized. How can I make sure that any call to wp_list_categories() excludes the child categories under "uncategorized" cat_id = 1? I want this to work even if the call wp_list_categorie... | Hi @Scott B : UPDATE FROM PRIOR ANSWER : Due you my evidently poor reading comprehension skills(!) where I missed the requirement to filter out children (Thanks @Adam BlackStrom for calling attention to my oversight) I've modified the code provided. I think you want to use the <code> list_terms_exclusions </code> filte... | Filtering Children of the “uncategorized” Category out of the Loop? | wordpress |
Hay all, I'm playing around with WordPress 3.0 and two (2) of the new features, Custom Post Types and the Menu Editor . I've started off by creating a new post type called " <code> products </code> ", as you've guessed, this list products. I'm using the bog standard template and I'm creating a new menu to replace the t... | @dotty As you can see by this trac ticket: There should be index pages for custom post types so obviously the need has not yet been addressed in WordPress core. Both @John P Bloch and @Chris_O give you good alternatives; I'm going to give you a 3rd. A "Products" Page First Create a Page for your Custom Post Type and ca... | Adding an Archive of Posts to the Navigation Menu in WordPress 3.0 | wordpress |
I'd like to add a new area on a WordPress 3.0 site that contains a new video from YouTube each day . This video would be manually picked, and manually added each day. I'm not sure how to properly set this up though. My current thought-process is that I would create a category called " videos ," and then add a new post ... | I'd recommend using a custom post type to handle this. You can add the custom post type and set it to only accept the YouTube url as content. Then you can display the "most recent" post from this setup with a custom loop on your home page. Here are a couple other good resources to start with: Description of custom post... | Implementing "Video of the Day" Feature? | wordpress |
I have a client who runs 8 different blogs, currently on 8 separate installations of WordPress. I'm trying to encourage them to move to a single MS installation instead to make it easier (mostly on me) to maintain the different sites, themes, and mix of plug-ins. Unfortunately, I shied away from MU for the longest time... | To map your domains, you can consider to use the WordPress MU Domain Mapping plugin which works with wordpress 3.0 as well. Otto has a tutorial online: WordPress 3.0: Multisite Domain Mapping Tutorial Next to that Import/Export should mainly do the job to transfer the sites. | How do I transition multiple installations to a single Multisite installation? | wordpress |
I'm looking for an efficiently coded plugin that will do 3 things... 1) Allow a person to rate a product when they submit a comment, based on a 5 star rating, by simply selecting the appropriate star on the 5 star icon widget. 2) List the user's rating of the product, inline with their comment. 3) List an overall produ... | The GD Star Rating plugin is immensely popular, and has an entire site dedicated to it. | Amazon-like star ratings plugin needed. Lightweight and effective. Prefer Ajax | wordpress |
After installed All in one SEO plugin my home page has two descriptions. One by WordPress itself and one by All in one SEO plugin. Is there a simple way to remove WordPress one? Please reconsider closing post as off-topic. Cos already done twice: stackexchange-url ("stackexchange-url stackexchange-url ("stackexchange-u... | I'd need to see your site to be sure, but there's a very good chance it's your theme (not WordPress itself) that's setting the extra description field. You can remove that from your <code> header.php </code> file and you should be set. WordPress itself doesn't have SEO features like that built-in. | Two description meta tags All in One SEO WordPress | wordpress |
Is there a way to have the styles on a page appear differently for certain categories, when viewing a page that is only of that category? | Hi @GSto : @EAMann has a great answer if you want different layouts for different categories. OTOH if you only want to change the CSS to, for example, have a different background color for each category then you'll find that most themes will include the category slug as a CSS class on the <code> <body> </code> el... | Custom Stylings for category pages | wordpress |
Is there a way for me to add an <code> <img> </code> tag in a Post, but then have a plugin download that image, and put it on the server for me instead of me needing to manually download the file from online to my computer and then upload it to the server? Thanks | Sure. You could hook the <code> save_post </code> action, use <code> WP_Http </code> class to download it and then insert it as an attachment using <code> wp_insert_attachment </code> and <code> wp_update_attachment_metadata() </code> . It's not trivial but shouldn't be that hard. | Automatically Import Image into Posts from URLs on the Web? | wordpress |
I am taking on a project where I need to build a static website (due to hosting restrictions). I thought of trying to do this by building a WP site on my computer, then creating a sitemap, and then ripping that site, and finally uploading the files to the host. Any better suggestions on how to do this? (or any good rea... | I am doing this right now (still in process). The best setup seems to be: 1) HTML extension on posts - easy, just use custom post pattern 2) HTML extension on pages - need a plugin for that, if you use pages 3) Disable feeds (in function.php by removing headers for it) 4) wget -x -nH -P scraped -np -k -R php -E -X wp-c... | Creating a Static Website based on a WordPress Website? | wordpress |
I would like to create a dmoz like website, using WP. Any suggestions on plugins or site's architecture would be welcomed. | A great starting point would be stackexchange-url ("Mike's answer") to the question about stackexchange-url ("cloning CrunchBase"). You'll want to do something similar with custom post types for entries in your directory. If you want to allow visitors to submit sites, you could perhaps use the TDO Mini Forms plugin to ... | Creating a Link Directory using WordPress? | wordpress |
I'm making a framework parent theme and in the parent <code> functions.php </code> , I want to register all the possible js files I use frequently and if I want it to load it, in the child <code> functions.php </code> I just have to use <code> wp_enqueue_script() </code> . But it doesn't work... Any clue why? | The child functions.php file loads before the parent functions.php, so you're registering them after enqueueing them. Try enqueueing the scripts on a hook, like <code> 'after_setup_theme' </code> instead. | JavaScript Files Registered in Parent Theme Won't Load When Calling wp_enqueue_script() in Child Theme? | wordpress |
In this post: http://humus101.com/?p=1734 We've got 4 images set (in the img property) to a width of 246 pixel. In chrome it looks fine. In IE6 it doesn't. Any suggestions on how to solve this? | I solved the problem. In the style.css I needed to make the following change <code> #content img { margin: 0; height: auto; max-width: 640px; /*width: auto;*/ } </code> I now wonder how to make that stay for all the following theme updates... | How to resolve - IE 6 ignores img "width" properties | wordpress |
I had to modify a published post and for some unknown reason, it removed the categories the post was in. I tried reassigning them, but it does not work: WordPress does not save the categories, so the post ends in the default "unclassified" category. I've checked and it happens also if I create a new post. So it's a qui... | IT turns out the Role Scoper plugin needed an update. That, and the server admin bumped a new PHP 5.3.3 update. I'm not sure which caused which exactly, but at least you know more now where to look at if the issue arises. | Cannot add / edit categories to a post anymore | wordpress |
I am running WordPress with "WPML Multilingual CMS", so that it has multiple language versions. In a function used with <code> add_action('template_redirect',<functionname>) </code> , I need to find out what the current language is. What should I call? | I have no experience with the plugin whatsoever, but from a quick scout of their site, it looks like: <code> ICL_LANGUAGE_CODE </code> will give you the current language. Worth a try, anyway! | Checking current language in a function | wordpress |
Starting a community wiki to collect up objective best practices for plugin development. This question was inspired by @EAMann's comments on wp-hackers. The idea is to collaborate on what objective best practices might be so that we can potentially eventually use them in some community collaboration review process. UPD... | stackexchange-url ("Use Actions and Filters") If you think people would like to add or alter some data: provide apply_filters() before returning . P.S. One thing I find a bit disappointing and that your question addresses is the percentage of plugins that are designed only for end-users, i.e. that have no hooks of thei... | Objective Best Practices for Plugin Development? | wordpress |
I'm using the latest build of WP and would like to display the first image attached to the post at the top of the post content. What code do I have to add to single.php to make this happen? | Attachments are considered children of the post they're attached to, so this should work: <code> $images=get_children( array('post_parent'=>$post->ID, 'post_mime_type'=>'image', 'numberposts'=>1)); echo wp_get_attachment_image($images[0]->ID, 'large'); </code> for a large image... replace "large" with th... | Displaying Post Attachment(s) at Top of single.php | wordpress |
I'm developing a WordPress site on my Mac, running OS X 10.6.4. I'm using OS X's built-in Apache server to run the site locally during development. I've set up WordPress and connected it to OS X's MySQL with no problems. The site seems to work fine, and I can post, edit, etc. The WordPress installation is in a folder c... | I was able to solve this problem—it turns out that WordPress behaves better when I set both the WordPress address and the site address to http://localhost/~Gabe/mysite.dev/ . | Why does WordPress get posts from MySQL from a virtual hostname but not the direct hostname? | wordpress |
I have an idea for a new plugin. Where can I propose the idea for the plugin so that someone might pick it up? p.s: I won't be willing to pay for it (it is not that important to me), but I still think it is a cool idea. I am also not going to try to make it myself, since my PHP skills are not good enough. | I'd suggest jobs.wordpress.net . It's a job listing site for freelance WordPress development. Just be very clear that you aren't offering any pay for the project. Alternatively, you can also suggest things in the official WordPress forums: Requests and Feedback . One third option is to mention it to someone on the WP-H... | Where can I propose a new plugin? | wordpress |
I use Git on my development and I find it to be reliable so I wonder what is the reason Automattic choose to use SVN for WordPress? | More then likely it is personal preference. Some people like the workflow introduced by SVN, and some just don't like the distributed model of Git. Some like the way commits, branches, tags etc are handled in one revision control over another. It could also be that they where using SVN before Git was stable enough and ... | Why Does Automattic use SVN for WordPress Instead of Git? | wordpress |
How do we add language support using .pot and .mo files in a WordPress theme? And how we retrieve the theme? | The .po (Portable Object) file is like a small library containing all the English terms in the theme with an empty column for non-English translations. Using software like Poedit, the .po file can be opened, translations can be added, and it can be saved, which also generates the .mo (Machine Object) file. With a suita... | Adding Language Support using .pot and .mo files to a WordPress Theme? | wordpress |
I'm starting to learn Selenium and PHPUnit and I am interested in implementing what I've learned in my WordPress projects. I've seen http://unit-test.svn.wordpress.org and wonder if there are any tutorials or core-developer's notes on how to use it? | Resources on how to use the WordPress unit-test: WordPress Automated Tests Trac Automated Testing in The Codex The Unit-Test README File The PHPUnit Manual Hakre/WP Unit-Tests Codex Page | Tutorials for Unit-Testing in WordPress and for unit-test.svn.wordpress.org? | wordpress |
I want two images to appear side-by-side. However, WordPress inserts a line-break between the elements, even if I use the HTML editor rather than the Visual editor. How can I make the editor trust that if I don't insert a line-break, I don't want it? | To avoid the line break when posting 2 images side by side assign the alignleft or alignright class to them and put them on the same line in the editor without skipping any spaces between them. Example: <code> <img src="/wp-content/uploads/your_image.jpg" alt="" class="alignleft" /><img src="/wp-content/upload... | How can I make the page editor trust me? | wordpress |
The question is "What is the Difference Between Hierarchical and Non-Hierarchical Taxonomies?" This question really stumped me at first so I figured it would be a good idea to show the difference to others surfing the site looking for the distinction. Specifically the question is referring to the <code> hierarchical </... | The simple answer is that terms in hierarchical taxonomies can have child terms . But what else? 'hierarchical'=> false When you specify a <code> 'hierarchical'=>false </code> you get the following type of metabox which is the metabox format WordPress also uses for Post Tags : 'hierarchical'=> true However when you ... | The Difference Between Hierarchical and Non-Hierarchical Taxonomies? | wordpress |
I'd like to cause a plugin to restrict its loading of CSS stylesheets and JavaScript JS files to only those pages for which they are needed. An example for my question is the plugin Contact Form 7 which I've used to create a form in one page on my site (the "contact me" page). However it adds the following lines to EVE... | Styles and scripts are always set up by the functions <code> wp_enqueue_script() </code> and <code> wp_enqueue_style() </code> , which have to be tied to a particular action hook in order to function. I took a peek inside Contact Form 7, and it looks like it's using action tags of <code> wpcf7_enqueue_scripts </code> a... | Restricting a Plugin to Only Load its CSS and JS on Selected Pages? | wordpress |
I'm creating a community wiki to ask the following question: What features would you most like to see added to WordPress? This Question Implies a Few Things: It should surface the features enthusiasts want most , not just drive bys from people who can't be bothered to know that the "P" needs to be capitalized ( inside ... | A Custom Fields UI I think really custom fields with custom UI is really a big requirements for a lot of people. I mean, compulsory, repeating, grouped, multiple images, etc. There is a bunch of plugins trying to provide the functionality, but they are all add-ons and have to play catch up to new WP features every time... | What Features would you Most Like to See Added to WordPress? | wordpress |
I need to get the URL of my theme directory to reference an image in the theme's image/headers directory. How is this done in PHP? | This function will return the theme directory URL so you can use it in other functions: <code> get_bloginfo('template_directory'); </code> Alternatively, this function will echo the theme directory URL to the browser: <code> bloginfo('template_directory'); </code> So an example for an image in the themes <code> images/... | How do I get the theme URL in PHP? | wordpress |
How to give "Interesting Tags" "Ignored Tags" selection option like stackoverflow.com in a WordPress blog? If a blog is about lots of topics and I want to give option to user to choose option like "Interesting Tags" and "Ignored Tags" option of stackoverflow.com. How to give that facility? Is there any plugin? | SO does not hide the posts (AFAIK), it just highlights or unhighlights them. And I am sure they are basically using CSS classes for that. From (very) quick look at the source, they basically use tags as CSS classes and then load a unique-to-you javascript that adds styles to entries with those classes. You basically wo... | Adding "Interesting Tags" & "Ignored Tags" like StackOverflow.com in a WordPress Blog? | wordpress |
I wish to have a "subscribe to new posts" widget for my blog. I know I can use feedburner system, but I want a plugin based solution. The best I could find was Subscribe2 , the downside of it is that you can't have it send full HTML e-mails for subscribers who are not registered users. Is there any alternative plugin, ... | The best WordPress plugin for email subscriptions to your blog without using third party services like Feedburner is the WP Responder Email Newsletter and Autoresponder Plugin | Plugin for Sending Email to Readers about New Posts? (besides "Subscribe2 ") | wordpress |
I need to access a list of all categories for a plugin I'm working on, I know that there is the <code> wp_list_categories </code> template tag for use in themes. What would be the best way of accessing these categories for use in a plugin? Is there a specific function or is it a case of writing a specific query? Edit :... | The <code> get_categories() </code> function is what you're looking for. Update: Thanks for the clarifications. Sounds like you're doing the same thing as stackexchange-url ("this question"), ie. creating a new taxonomy for attachments. (I'm not sure they get these categories automatically, maybe someone else can clari... | Getting a List of Categories for Use in a Plugin? | wordpress |
I'm looking for a plugin that will let me easily place a jQuery based (because I want to avoid the hassle of multiple javascript libraries) slider on my site in various places. I'd like it to be able to handle images as well as html. I'm aware of the Featured Content Gallery plugin, but I would like to find an alternat... | I've settled on the SlideDeck plugin for WordPress for this project. In short, it's very well put together, looks great, is very flexible, etc. etc. I'm pretty impressed thus far. The only drawback is that the free version includes a very small attribution image link, but honestly, it's probably worth the $49 they want... | What is a good jQuery content slider plugin? | wordpress |
Going to upgrade WordPress 2.7.1 to 3.0.1 along with all plugins, any tips to do without trouble? Edit: 7 September Dashboard is showing "New version available" for both, WordPress version and for some plugins. So i want to upgrade everything. then what should be upgraded first, WordPress or plugins? And which update w... | You shouldn't have any trouble ... but before doing the upgrade I recommend you do the following: Backup everything Back up your theme Back up all of your plug-ins Back up your existing database This will allow you to "undo" the upgrade if needed. Check theme compatibility If you're using a commonly available theme, ch... | Upgrading WordPress and Plugins; any Tips to Avoid Trouble? | wordpress |
Is there a plugin that logs my usage of plugins on the blog? (when I downloaded a new plugin. When I activated/deactivated it and so on) ? | I have searched fairly extensively, and have not found such a plugin. The best recommendation I could make is to use the WordPress File Monitor plugin. This will at least let you know when a new plugin is installed. Really, you should be using it regardless - it's a great plugin to use as part of an overall security st... | Is there a plugin-log plugin? | wordpress |
I have a website who is having a high CPU usage. The only way I know of it, is the information I get from the support people of the hosting company. Is there any other way for me to become informed of the resource usage done by my website? (specifically the plugins, but not only them) Thanks. | You need a so called profiler to measure which part of your application does make use of CPU and Memory Resources. XDebug is such a profiler for example. Using it will show you exactly which part of your application uses how much of CPU and memory. | Is there a way to measure server resource (CPU) usage by WP plugins? | wordpress |
I am using WordPress 3 and would like to backup the database to my computer (a Mac). My webhost is using PHP safe mode, so that sometimes limits what plugins I can use. What is a good way to do a database backup? Is it possible to be automated? Are incremental backups recommended/easy? Obviously I then need to test res... | I've personally had limited success with the backup/restore plug-ins that are commonly available. Many times, the best backup plug-ins don't allow for a direct restoration from a backup file. So I do things manually. It's a bit more difficult, but far more reliable, too. Backing up with phpMyAdmin Log in to your host's... | Backup the Database and Restore from the Backup? | wordpress |
I'm trying to remove the last separator (normally a <code> <br/> </code> tag but I changed it to "//") from the last link from wp_list_categories. Basically I want this: Category 1 // Category 2 // Category 3 // to look like this: Category 1 // Category 2 // Category 3 Here's the current code I'm using: <code> &l... | Change the last line to this: <code> $output = strtr( wp_list_categories( 'include='.$cat_ids.'&title_li=&style=none&echo=0' ), array( '<br />' => ' // ' ) ); echo preg_replace( '@\s//\s\n$@', '', $output ); </code> | WordPress remove separator from last item in wp_list_categories | wordpress |
This is a strange question, but I want to know how I can access the Date and Time settings <code> Admin > Settings > General > Date Format Admin > Settings > General > Time Format </code> I am using the Any+Time jQuery plugin as a date/time selector for the editor view for a custom post type. It allow... | <code> get_option('date_format'); get_option('time_format'); </code> | How to get the Date Format and Time Format settings for use in my template? | wordpress |
I need a way to create a custom field that will let me pick an image from the media gallery. How do I do that? The custom field should have a button that when clicked will take me to the media gallery and place the src destination url within a input text box. looking for a plugin or online tutorial and I'm having littl... | A few weeks ago I added a feature similar to Magic Fields . Here's the github project . The most important thing is in this file: <code> js/custom_fields/media_image.js </code> | How do I make a custom field choose an image? | wordpress |
The question is " How to Allow Two Developers Access to a Plugin on the WordPress.org Plugin Repository? " This question was asked on the wp-hackers list and @EAMann answered it nicely and it's a great question to have here so I'm posting it for Eric to answer here. | There are two (2) steps. Add the WordPress.org username of the contributor you want to add to the " contributors " line in the header info of the Readme file, and that person will have SVN commit access to the plugin. Go to the plugin repository and log in with the main account Go to your plug-in and click the " admin ... | Allowing Two Developers Access to a Plugin on the WordPress.org Plugin Repository? | wordpress |
I am adding a new "Custom Post Type" named "Seminar". I am defining three custom fields Location StartTime EndTime StartTime and EndTime are going to store dates (surprise, surprise). I am wondering if there's any way to tell WordPress to treat these like dates so that I can sort by them and stuff. I am very new to WP,... | Hia. Basically no. But, you can order by meta_value in WP_Query, so you can sort. I am not sure what format you are storing the dates as, but it will need to be something that MySQL can order by, a simple Unix timestamp would be fine, you would do: <code> $query = new WP_Query( 'post_type=seminar&meta_key=start_tim... | Is it possible to define the data type of a Custom Field? | wordpress |
I'm registering a Custom Post Type and in the rewrite array I am trying to do something like this: <code> 'rewrite' => array('slug' => "explore/resources/".$CATEGORY, 'with_front' => false) </code> I want the rule to 'dynamically' get the post's category name somehow. I also tried using <code> %category% </cod... | You could use my plugin: http://wordpress.org/extend/plugins/custom-post-permalinks/ That will only work if it's a non-hierarchical post type. If it's hierarchical, you're going to have to register the permastruct yourself. This is a huge ordeal which I don't have the time to write out at the moment. You can look at th... | Writing Custom Rewrite Rules that Incorporate Category for Custom Post Types? | wordpress |
I've often heard that having a lot of plugins will slow down a WordPress site. This makes sense of course, as the more code that executes, the longer it will take. I'm wondering whether the slowness is mostly: a result of the sheer number of plugins? (because WP has to do some processing to locate and load each plugin)... | Generalities The rule of thumb " lots of plugins slow down a site " is a very blunt instrument and is perpetuated by those who don't understand how plugins work so they pick something easy to demonize. Yes plugins can slow down your site but it doesn't have to do with the quantity it has to do with the quality and what... | Is it heavyweight plugins or lots of plugins that make a site slow? | wordpress |
I have created a Custom Post Type called <code> 'listing' </code> and added a Custom Taxonomy called <code> 'businesses' </code> . I would like to add a dropdown list of Businesses to the admin list for the Listings. Here is what this functionality looks like in admin list for Posts (I would like the same for my Custom... | UPDATE: I've included a new complete answer but even so I've left my original response at the bottom to which the first few comments reference. Hi @tarasm : Although I said it shouldn't be hard it is a little involved. But before we dig into the code... The Screenshots: ...let's check out some screen shots for the fini... | Adding a Taxonomy Filter to Admin List for a Custom Post Type? | wordpress |
I have a client that wants to create several WordPress sites and utilize a "site switcher" at the top, sort of like ThemeForest.net. I know in WP 3 you can create multiple blogs on the same installation, but what about enabling users who login to one blog to be logged into all of the blogs in the WordPress installation... | @brianmcculloh As @John P Bloch said, WordPress Multisite is a perfect fit . The list of sites is what WordPress now calls a Network . Here are some resources that you might find helpful: Creating a Network (WordPress Codex) Installing Multiple Blogs (WordPress Codex) How to enable Multi-Site option in WordPress 3.0 (W... | Multi-site User Sessions | wordpress |
I'm trying to work sub-menus into my theme but am running into issues when navigating to BuddyPress pages (as opposed to standard WP pages, posts, etc.). Basically, what I want to do is have pages (where appropriate) display a sub menu, ala: But when I navigate to pages that exist under BuddyPress' control, I get the f... | EDIT: I received a direct, easy answer from the folks over on the BuddyPress forums: There is a template tag called bp_current_component() that returns a boolean. So, in short, to tell if we're currently in a BuddyPress-ized section of the site, we simply call: <code> if( bp_current_component() ){ </code> ...or, if we ... | How can I detect whether a BuddyPress page is active from within my theme? | wordpress |
I put a <code> if(is_home()) </code> bit in my theme's functions.php and it doesn't seem to work. The function containing this bit is called on init so <code> is_home </code> should work already. | <code> is_home() </code> won't work until <code> wp_query </code> is run. The earliest hook you can use where is_home will work is <code> 'parse_query' </code> , but <code> 'template_redirect' </code> would be better. | Why isn't is_home() working correctly? | wordpress |
I didn't know this site exists. So, I asked it on stackexchange-url ("WebApps") I didn't get a solution still. :-( I am unable to install any theme/plugin to my WordPress 3.0 <code> Downloading install package from http://downloads.wordpress.org/plugin/contact-form-7.2.3.1.zip… Unpacking the package… Installing the plu... | It's either the configuration of the path where WordPress is installed (you don't have the right path setup) or if the path is correct, you don't have got enough permissions to modify the file system. So as this answer is very broad, that's because it is of a very technical nature that is bound to your concrete hosting... | How to prevent plugin, theme installation failures on Wordpress? | wordpress |
I've already added my scripts, but I wanted to know the preferred way. I just put a <code> <script> </code> tag directly in the <code> header.php </code> of my template. Is there a preferred method of inserting external or custom js files? How would I bind a js file to a single page? (I have the home page in mind... | Use <code> wp_enqueue_script() </code> in your theme The basic answer is to use <code> wp_enqueue_script() </code> in an <code> wp_enqueue_scripts </code> hook for front end <code> admin_enqueue_scripts </code> for admin. It might look something like this (which assumes you are calling from your theme's <code> function... | What is the preferred way to add custom javascript files to the site? | wordpress |
I don't feel like making my own theme from scratch, so I looked for some theme frameworks, but they're all old and when I install them on WP 3.0 they produce loads of errors and don't behave properly. I just need a 3.0 ready blank theme with the bare elements (just text, but functional) to then shape myself into a good... | From what I understand Starkers 3.0 fits the bill. Do you want something this naked , or less? | Is there a blank theme framework compatible with WP 3.0? | wordpress |
I am trying to use tips from stackexchange-url ("here") to add my JS file. I put the following in the functions.php of atahualpa theme I've got installed <code> function lektor_init() { if (true) { wp_enqueue_script('lektor',TEMPLATEPATH.'/js/synteza.js'); } } add_action('init','lektor_init'); </code> <code> TEMPLATEPA... | <code> TEMPLATEPATH </code> is a directory path, not a url. You'll need to use <code> get_template_directory_uri() </code> . | Why doesn't wp_enqueue_script() work when including a JavaScript file with TEMPLATEPATH? | wordpress |
I did some quick looking around, but my PHP skills are pretty nascent. I am sure there is just a package that needs installing. Edit to add additional information about the setup: Using: <code> yum info php </code> I get the version of PHP as 5.1.6: <code> Name : php Arch : i386 Version : 5.1.6 </code> More information... | Upgrade to PHP 5.2 or above The Error Message you see is by WordPress. It's very misleading what it basically saying is, that you need a PHP version > = 5.2 for that feature to work. Please look into your operating systems documentation or contact technical support on how to update your PHP version. For CentOS, for exa... | I get "The PHP Date/Time library is not supported by your web host." on my CentOS host, what library to I need to install to add support? | wordpress |
After a certain amount of time WP logs out all users and forces them to log back in again. For development environments on my local machine this is obnoxious and absolutely unnecessary. Is there an API-driven way of disabling the auto-logout indefinitely? Ideally I'd like something I can add to <code> wp-config.php </c... | By default, the "Remember Me" checkbox makes you get remembered for 14 days. This is filterable though. This code will change that value: <code> add_filter( 'auth_cookie_expiration', 'keep_me_logged_in_for_1_year' ); function keep_me_logged_in_for_1_year( $expirein ) { return 31556926; // 1 year in seconds } </code> | What's the easiest way to stop WP from ever logging me out | wordpress |
I have been working on an image gallery feature where I grab images which are attached to pages and display them in various places via the <code> get_posts() </code> function. However, I am finding that when I remove images from the page that they have been placed that they still seem to be set as attachments. I'm just... | Deleting an image from a post or page is a confusing process. When you upload an image to a post/page, it's added to that post/page's gallery. You can then insert the image into the content of the post/page and edit content as you see fit. When you click on the image in the wysiwyg editor, you'll see two icons - one to... | Image still linked as attachment to page even though it has been deleted | wordpress |
Is there anyway to create blogs with 2 depths using multisite? I want to have an installation in root and blogs with 2 depths. Something like: <code> / - WP installation: root aggregate /foo - WP installation: aggregate for a topic /foo/item - WP installation: blog for an item </code> Trouble is that multisite only goe... | Answering your first question, yes it is absolutely possible to have one installation of WordPress running 'within' another (i.e. installed at example.com and example.com/child). I have something like that running right now. | Depth > 2 possible with multisite? | wordpress |
A static front page and other pages which are children of it are used on a blog. To give an example: www.example.com The slug for that page shows up in the permalink for sub pages like www.example.com/long-slug-from-static-front-page/sub-page-slug.html. The question now is how to make the URL Design more natural? Since... | WordPress does have a way of doing what you want. Make them all top level pages. Unless you have a good reason not to. | Natural URL Design and static front page | wordpress |
I sometimes build applications in Flash for the web that need a fair bit of dynamic data. Would WordPress be a good fit for my CMS solution? can it "talk" to flash? Does it allow output as different formats such as XML, JSON, or AMF? | Absolutely. WordPress is implemented in PHP and anything Flash needed to interface with can be coded as a plugin, probably very easily. You can also implement any embedding of Flash as ShortCodes . Here are some (honestly not very good) links on the subject of PHP & Flash: http://www.kirupa.com/developer/actionscri... | Can I / Should I use WordPress as a CMS for my Flash application | wordpress |
I'm using the following template code to display attachment links: <code> $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $main_post_id ); $attachments = get_posts($args); foreach ($attachments as $attachment) { the_attachment_link($attachment->ID,... | As far as I know, WordPress has nothing built in for this, I would just do: <code> filesize( get_attached_file( $attachment->ID ) ); </code> | How do I get the size of an attachment file? | wordpress |
I was wondering about the impact nonces would have on the default comment form a theme has. Because Nonces are a built-in feature of WordPress I thought about giving it a try. Does somebody has already implemented nonces in the standard comment form? (can't imagine that I'm the first one who thinks about that... !) Can... | I haven't done this personally, but it would be pretty easy. If you are building your comment form manually, just before the end of the <code> </form> </code> put: <code> <?php wp_nonce_field( 'comment_nonce' ) ?> </code> Then, just hook into the <code> pre_comment_on_post </code> action which fires when yo... | Experiences with adding Nonces to the comment form | wordpress |
I always find myself in HTML mode in the editor to try and get simple things like breaks between paragraphs to show up right (using <code> <p></p> </code> ). Is that normal? Is there a better editor out there that I could use? | What happens is that TinyMCE converts every double line break in the HTML source to <code> <p></p> </code> and vice versa. It will actually strip away any <code> <p/> </code> you manually enter in the HTML source after you save, because when the post's content is rendered, <code> <p> </code> and... | How can I improve the line break handling in the WYSIWYG editor? | wordpress |
Drupal 7 has support for the semantic web (RDF/RDFa). Is there a plugin or similar plans for WordPress? | As far as I know, there are no plans to implement RDF into WordPress. RDFa on the other hand can be quite easily implemented by any theme or plugin author by simply adding the RDFa attributes to the generated markup. Writing a plugin to expose WordPress' taxonomy as RDF wouldn't be hard and making it two-ways would pro... | How can I use RDFa with WordPress? | wordpress |
Disclaimer: I am brand spanking new to WP. I am using the Starkers HTML5 framework theme . In the <code> functions.php </code> I see this code: <code> function starkers_widgets_init() { // Area 1, located at the top of the sidebar. register_sidebar( array( 'name' => __( 'Primary Widget Area', 'starkers' ), 'id' =>... | You just call <code> get_sidebar() </code> from <code> index.php </code> and it loads the theme file <code> sidebar.php </code> . <code> register_sidebar() </code> , on the other hand, is used for widgets where plugins and such want to dynamically add content in your <code> sidebar.php </code> file if your theme suppor... | How do register_sidebar() and get_sidebar() work together? | wordpress |
I am using <code> register_taxonomy_for_object_type() </code> to add the Category taxonomy field to Media uploads (attachments). I'm using this code to do so: <code> add_action('init', 'reg_tax'); function reg_tax() { register_taxonomy_for_object_type('category', 'attachment'); } </code> This works and adds a simple te... | I'm going to answer my own question here as I have managed to figure out a solution to what I've been trying to do. I came to the conclusion that it wasn't possible to get the Category Metabox enabled for attachments. However, I found that it was easy enough to get a basic field for Categories added to the attachments ... | Can I add a Category Metabox to attachment? | wordpress |
I have a 3.0.1 site with <code> MULTISITE </code> enabled and would like one of the sites to live at <code> /blog </code> , but when I try to create a new site with that path, I get this error: <code> The following words are reserved for use by WordPress functions and cannot be used as blog names: page, comments, blog,... | You can't. That's part of the main site's permalink structure. There's no way to get around it. You can find more information here: http://core.trac.wordpress.org/ticket/13527 | How do I get /blog on my WordPress multisite | wordpress |
I have a standard dynamic sidebar using <code> register_sidebar </code> and <code> dynamic_sidebar </code> and I need the last widget in the sidebar (which will not have a set number of widgets) to have a distinct class ( <code> 'last_widget' </code> ) added to the <code> <li> </code> that wraps it. What's the be... | Hi John : I think this is what you are looking for (I'd explain the code be I think it's self-explanatory; let me know if not): <code> <?php add_filter('dynamic_sidebar_params','my_dynamic_sidebar_params'); function my_dynamic_sidebar_params($params) { $sidebar_id = $params[0]['id']; $sidebar_widgets = wp_get_sideba... | How Do I Add Custom CSS To Only Certain Widgets | wordpress |
Previously, I was able to selectively load child pages for a currently-selected parent page using logic such as: <code> if( $post->post_parent ) { $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); } else { $children = wp_list_pages("title_li=&child_of=".$post->ID."&... | I created a Widget named Page Sub Navigation (clever I know) that is working for me. If you install this, you can just drag the widget to one of your widget areas and BAM it works. <code> <?php /* Plugin Name: Page Sub Navigation Plugin URI: http://codegavin.com/wordpress/sub-nav Description: Displays a list of chil... | Generate a Menu that Displays Child Pages using wp_list_pages() with the New Menu Functionality in WordPress 3.0? | wordpress |
Blogs hosted on wordpress.com get automatic link shortening via http://wp.me/ , but for those who prefer to seek out our own hosting solution is there a plugin that will, upon publishing a new post/page, make an api call to bit.ly (or other such service) store the resulting url and return it from <code> wp_get_shortlin... | There's this plugin: http://wordpress.org/extend/plugins/wp-bitly/ | Automagic Link Shortening for Non-Hosted WP | wordpress |
I run a WordPress site with about 70 active plugins. Every so often, I'll get a random error page ("Not Found", though I haven't checked the headers to see if it's a 404) on a <code> /wp-admin/ </code> page that pops up out of nowhere. Simply trying again resolves the error, however it's quite inconvenient if the error... | i was having problems all day with what seemed to be 404 misfirings. anyway, i just finished chatting with a dreamhost tech support person who told me that a user account i have with them was hitting process memory resource limits (all processes) and that was what was causing strange, seemingly htaccess-related problem... | How to eliminate weird 404 errors in wp-admin? | wordpress |
Is there way to have multiple WYSIWYG editors for a custom post type? For example, if I had a 2 column layout I wanted to have one editor for one column and another editor for the other. | Say your custom post type was called <code> Properties </code> , you would add the box to hold your additional tinyMCE editor using code similar to this: <code> function register_meta_boxen() { add_meta_box("wysiwyg-editor-2", "Second Column", "second_column_box", "properties", "normal", "high"); } add_action('admin_me... | Is there a way to get N number of WYSIWYG editors in a custom post type? | wordpress |
Is there any WordPress plugin that provides OpenID authentication for comments that works in WordPress 3.0? The OpenID plugin appears to be broken in WP 3.0 and no longer in active development (10 months since last update). | stackexchange-url ("stackexchange-url | OpenID for WordPress 3.x? | wordpress |
From the WordPress support forums: Hi, this is my website http://www.mp3ojax.com . I want to insert permalinks on the images on main page This is the code: <code> <a href="<?php the_permalink() ?> <?php endif; ?> <?php $metadataContent = ob_get_clean(); ?> <?php if (trim($metadataContent) != '')... | There isn't really enough code as an example to fully understand if there is any additional issues, but the main thing which is causing the URL's to not work is the fact that the opening anchor tag is not closed. Adding a <code> "> </code> to the end of the first line should fix the issue. In addition the <code> art... | Permalink Problems | wordpress |
( Moderator's note: The original title was "How can I create create and use a custom template for custom post types in the Genesis theme framework?") I'm using the Genesis theme framework, with an almost completely 'stock' child theme. I have the WP Easy Post Types plugin installed, and have created one custom post typ... | Turns out I was wrong, Genesis does support using the <code> page_posttype.php </code> method of creating a custom template. It turned out to be very simple. Here's the contents of my page_members.php file (located in the child theme folder): <code> <?php /* Template Name: Members */ remove_action('genesis_loop', 'g... | Using Custom Templates for Custom Post Types for the Genesis Theme Framework? | wordpress |
So I'm using Starkers to base my next WP theme on and I've run into a small issue, I was including my own version of jQuery in the <code> header.php </code> file but when inspecting my site using Firebug I noticed jquery was being downloaded twice, I did a bit of digging and noticed that not only was I including the fi... | From the wording of your question, you must be adding scripts by writing <code> <script> </code> tags in your template. Add your own scripts via <code> wp_enqueue_script() </code> in your template's <code> functions.php </code> , appropriately setting dependences on jQuery, and <code> wp_head() </code> will add t... | How to Link External jQuery/Javascript files with WordPress | wordpress |
I'm trying to set up a custom post type following this tutorial. However, I'm a bit confused as how/where to implement <code> update_post_meta() </code> . The tutorial suggests this pattern: <code> add_action('save_post', 'save_my_metadata'); function save_my_metadata() { global $post; update_post_meta($post->ID, 'm... | <code> function save_my_metadata($ID = false, $post = false) { if($post->post_type != 'your_post_type') return; update_post_meta($ID, 'my_metadata', $_POST['my_metadata']); } </code> That should work. Just replace 'your_post_type' with the name of the post type. Also, little known fact: the 'save_post' hook passes t... | How do I save metadata for a specific custom post type only? | wordpress |
I've got a project where I need to build a store locator for a client. I'm using a custom post type " <code> restaurant-location </code> " and I have written the code to geocode the addresses stored in postmeta using the Google Geocoding API (heres the link that geocodes the US White House in JSON and I've stored the l... | What precision do you need? if it's a state/national wide search maybe you could do a lat-lon to zip lookup and have precomputed distance from zip area to zip area of the restaurant. If you need accurate distances that won't be a good option. You should look into a Geohash solution, in the Wikipedia article there is a ... | Optimizing a Proximity-based Store Location Search on a Shared Web Host? | wordpress |
What good free and open source alternatives exist to the Thesis theme ?? | I assume by " alternatives " you mean Theme Frameworks ? If yes, here's a list: Atahualpa The Buffet Framework Carrington Hybrid Sandbox Thematic WP Framework UPDATE: I added a few more: ashford Basis Brave New World Buffet Imagination Naked OnePress Starkers Startbox Starter Theme Project Vanilla Whiteboard WordPrecio... | Free/Open-Source Theme Frameworks as an Alternate to Thesis? | wordpress |
When I wrote a theme, I made sure it was compliant with XHTML 1.1 and CSS 2.1. Then I added plugins and the theme is no longer compliant with XHTMl 1.1. Then I used Google API font in my CSS and it is longer CSS 2.1 compliant. Is there a way I can keep the compliance without getting rid of the plugins, font etc or shou... | Correction, your theme was still compliant with XHTML 1.1 and CSS 2.1, but the plug-ins you added injected additional code that wasn't compliant. Unfortunately, there's no easy way to maintain compliance if you're using plug-ins. The best you can do is validate your theme and all of the markup you are personally respon... | How to maintain W3C standards compliance of a theme | wordpress |
The question is How do I make the header on the Twenty Ten theme less tall? That question was asked over at the LinkedIn WordPress group that is hidden from search engines so I thought I'd copy my answer to here. I've also made it a community wiki so it doesn't pass reputation to me. | To make the header on the Twenty Ten theme less tall (i.e. a height with fewer pixels) put this code at the bottom of your theme's " <code> functions.php </code> " file (being sure to change the number <code> 180 </code> to whatever height you want): <code> <?php add_action('twentyten_header_image_height','yoursite_... | Making the Header on the Twenty Ten Theme Less Tall? | wordpress |
By default, WordPress strips out any content that might be unescaped HTML in comments from unregistered users, which is good to protect against XSS, but it unnecessarily extends that filtering into <code> <pre> </code> elements too. On my blog, where almost every post generates comments that benefit from HTML cod... | a small solution; the highlighting was in my blog via javascript <code> function pre_esc_html($content) { return preg_replace_callback( '#(<pre.*?>)(.*?)(</pre>)#imsu', create_function( '$i', 'return $i[1].esc_html($i[2]).$i[3];' ), $content ); } add_filter( 'the_content', 'pre_esc_html', 9 ); </code> | Relaxing unescaped HTML filtering inside tags? | wordpress |
What is a plugin lifetime within a deployed instance of WordPress? Namely: do the plugins modify existing files or do they only use defined extension points within WordPress? are plugins allowed to modify database schema (e.g. add new columns)? how does Wordpress make sure that plugin uninstall always leaves WordPress ... | Short answer: Plugins do not modify existing files, they hook into WordPress via an exposed API. Plugins can modify database schema. Plugins don't have to uninstall cleanly. Plugin Hooks Plugins hook into WordPress at specific point exposed by the WordPress core. http://codex.wordpress.org/Plugin_API As an example, the... | Does plugin uninstall always put WordPress back into original state? | wordpress |
I wanted to create a WP plugin. So I requested and my request was approved by WordPress.org But I don't want to develop that plugin anymore. How can I delete the repository forever or request its deletion. | Please mail plugins - wordpress.org and ask them to remove your plugin. Provide all infos and explain that you won't start to develop the plugin so the name should no longer be blocked. I would use the same email as while registering the plugin (maybe even replying to it) and I think they will remove it after some days... | Delete WordPress plugin Repository | wordpress |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.