question stringlengths 0 34.8k | answer stringlengths 0 28.3k | title stringlengths 7 150 | forum_tag stringclasses 12
values |
|---|---|---|---|
I would like to give a CMS look to some of my pages. I want to customize them by removing the default widgets and adding other widgets as my wish (I will use plugins like My Custom Widget to add custom codes if I need) . Is there any possibility to customize the specific pages like this? | Take a look at this plugin, WidgetLogic . From the description: This plugin gives every widget an extra control field called "Widget logic" that lets you control the pages that the widget will appear on. I've used it successfully. | Disable Specific Widgets on Selected Pages of a WordPress Website? | wordpress |
Assume I have SSH from a shared/managed-VPS hosting, and FTP access, but no fantastico. Thanks. | Yes . There is a script called easywp.php You upload it to your server and run it. it will install wordpress for you (i.e. download the .gz file, open it, etc ...) Another option is to download wordpress to your server using wget and ssh. you can do that using the command: <code> wget http://wordpress.org/latest.zip </... | Quickest Way Besides FTP to Upload WordPress Files to a Web Server? | wordpress |
What is the recommended way of creating a page with a table, in the style of the tables showing posts or users in the admin area? I am expanding the Cache Images plugin, and it contains a table with domains and a number of images from that domain. So there is no equivalent existing table that I can build upon (in the f... | This is what I generally use: <code> <table class="widefat fixed" cellspacing="0"> <thead> <tr> <th id="cb" class="manage-column column-cb check-column" scope="col"></th> // this column contains checkboxes <th id="columnname" class="manage-column column-columnname" scope="col"></t... | Creating a table in the admin-style? | wordpress |
Have developed a site on the production box using a temporary address (http://IP-adddress). Now it's time to go live. Once, ages ago, I successfully used phpMyAdmin and did a search/replace, but am wondering if it's still "the best" way to go. Will these work okay, still? The site is in WordPress 3.0.1. <code> update w... | Yes, these queries still work. This is a complete how-to: http://web-kreation.com/tutorials/migrating-a-wordpress-site-ftp-phpmyadmin-and-sql-queries/ | Correct Search & Replace Queries for Changing URLs in a WordPress Database? | wordpress |
I am desperately looking for some way (any way) to set default "screen options" and metabox order through the functions.php file. does anyone have any help they can provide here? | Setting the order of meta boxes on post edit pages You will need to remove the meta boxes, and add them again in the order you want. To disable meta boxes: (customize to your needs, look at the metabox id in the html code to know which name you should use as first parameter of the functions) <code> function my_remove_m... | Set Default Admin Screen options & Metabox Order | wordpress |
Is it possible to run more than one site on the same WordPress core and a set of plugins? I want to be able to have custom plugins and themes for each site, but have a base set that is the same, to make it easier to maintain. | Yes, it is possible . You can setup subdomains sites like this: <code> subdomain1.domain.com </code> , <code> subdomains2.domain.com </code> . Then, after you setup the network, use a domain mapping plugin to setup a domain name for each of them. <code> subdomain1.domain.com </code> becomes <code> domain1.com </code> ,... | Running several WordPress sites on same core / plugins? | wordpress |
In the past I've used the Day and Name or Month and Name settings. Should the date structure be omitted and just have /%postname%/ ? Ie does having the date information reduce the quality of the url? | @nevster, The best permalink structure for seo is /%category%/%postname%/ This permalink structure gives you the most keywords loaded into the URL of your post. Since the category that you’ve placed your post under usually relates to the post title, you will have an extra SEO benefit if other websites use that permalin... | What is the best permalink structure for SEO? | wordpress |
When I started with my blog, the permalinks and following structure: <code> http://<domain>/%year%/%monthnum%/%day%/%postname%/ </code> Some time ago, I changed the permalink structure to " <code> http://<domain>/%postname%/ </code> " only. In order to tackle the external links to the old permalink structur... | RedirectMatch of Mod_Alias is not as powerful as Mod_Rewrite. If you have Mod_Rewrite on your host (Pretty Permalinks make use of it for example) you could make the redirect only if the URL is not in the Archive link format. To test for that case, there is <code> RewriteCond </code> and to make the redirect command, th... | Change of permalink structure - redirects in htaccess breaks the archive links | wordpress |
Hey guys. I am working on a plugin and I am trying to figure out all of the possible scenarios in which the plugin can be used. I am aware of the new Multi-Site feature. If the plugin is network activated, then it will basically be forced upon all of the blogs within that website. What happens if the plugin is just act... | You are right about network activated. About the other two: The user will always see all the plugins in their blog admin's plugin list. Activating a plugin means activating it only on the current blog, and you can deactivate it if it was previously enabled. These two options does not affect the other blogs in the netwo... | Multi-Site Plugin Activated (Not Network-Activated), What Happens? | wordpress |
I have installed WordPress via an auto-installer and later configured it as multisite. But whenever I create the WordPress site using auto-installer it doesn't give me the <code> .htaccess </code> file by default. So I've created an empty file with the name <code> .htaccess </code> in CPanel and pasted this code in to ... | Sure this is not a problem. As long as you site works and redirects to the right pages there is no harm in doing this. You might also want to use it for protecting your wp-config file from hackers by adding this to your .htaccess: <code> <Files wp-config.php> Order Allow,Deny Deny from all </Files> </code> ... | When WordPress Does Not Provide an .htaccess File for New Multisite Sites because of CPanel Fantastico Auto-Installer? | wordpress |
I've got a WordPress blog on WordPress.com. When posting something I'm including some sample Java code in the <code> <code </code> tags, is there any way I can have this formatted better? Such as syntax highlighting and line numbers etc? An example of what I have is here , even though I have the code tags it doesnt ... | wordpress.com supports code syntax-highliting. You can read all about it here: http://en.support.wordpress.com/code/posting-source-code/ for your specific example use: <code> [sourcecode language="java"] package com.jameselsey.domain; import java.util.ArrayList; import java.util.List; import com.google.android.maps.Geo... | Formatting Code Snippets on Free WordPress.com Account? | wordpress |
I have just created a new Wordpress site (version 3.0.1) on a Windows 2003 server, but the 'Month and Time' permalink format does not work. It gives a 404 error when I use it. All of the other standard permalink formats work okay. Please can you tell me what would be causing this issue? | The type of permalinks you write about are also called "Pretty Permalinks" and are a feature of Wordpress that has been designed for the Apache HTTP Server with Mod_Rewrite enabled. Every other server is at first incompatible to this and you should not use those pretty permalinks on those system unless you know what yo... | Why does the 'Month and Name' Permalink Format not Work on my new Wordpress Site (running on IIS7)? | wordpress |
What is the best way to add custom fields to a WordPress comment form? (for example subject, image, etc...) And how do I use the data entered afterwards... | Hi @hannit cohen : This slideshow from Beau Lebens should be able to show you how: Hooking into Comments And this blog post from Otto should be able to show you more: WordPress 3.0 Theme Tip: The Comment Form | Adding Custom Fields to WordPress Comment Forms? | wordpress |
I have a custom post type for a Slideshow which uses Custom Post Meta to insert the different slides. How can I code the <code> <!--nextpage--> </code> tag in between the sides in my slideshow.php so that they slides will paginate? Right now when I try to do it the code doesn't show because it by it's nature it c... | This question was more extensively discussed at Hybrid support forum. I made and posted snippet for custom pagination of custom fields content there. | Hard code the nextpage tag into my theme? | wordpress |
I've added a few different <code> custom_post_types </code> to my Wordpress 3 installation. They are all a bit different from eachother, and should store unique information in <code> custom_fields </code> . But while one may store a <code> product_id </code> , another will not. One will have a <code> source_url </code>... | Hi @Jonathan Sampson : There are several plugins to make Custom Post Types easier and some allow you to define Custom Fields too, in no particular order: WP Easy Post Types GD Custom Posts And Taxonomies Tools Custom Post Type UI Simple Fields As I mentioned above I've been working on one that does not provide a User I... | Making Custom Fields Standard in the Admin UI | wordpress |
I am looking into optimizing my WP blogs, and one thing that comes out is that several of the most acclaimed solutions people are offering (Such as eaccelerator and Nginx), are only available if I had an unmanaged account. According to other reasons you might detail, which is better (performance wise) for managing a WP... | @Tal, In terms of performance an unmanaged VPS will be better than a managed one. A Managed VPS will almost always come with CPanel which is great for shared hosting and for hosting companies to easily manage your VPS for you. You can still install any of the Opcode caching tools (APC, eAccelerator, XCache, MemCached) ... | In terms of performance - Is unmanaged VPS better then a managed one - for WP sites? | wordpress |
I'm building a Theme Options page for my theme, and I've managed to get most of it working fine. But now I'm trying to show and hide certain parts in my theme based on a simple check box. An example: Show featured content slider ? - Yes - No When the user selects yes I want to enable the following code in a certain tem... | @Bowe You would need to create an array in your options function for the checkbox and give it an id a default state and assign the "checkbox" type to it. Here is a sample assuming you already have the code in place for the admin panel <code> <?php // Set variables for the options panel $themename = "your_theme_name"... | How can I display/hide certain content based on a Theme Option field? | wordpress |
By default, when adding <code> <!--nextpage--> </code> , the following links are displayed: Pages: 1 2 I need to replace "Pages:" with a graphic arrow which links back to the previous page, and append a graphic arrow to the end of the links that links to the next page. I'm guessing there's a way to do this in the... | Just specify an image as the "nextpagelink" and "previouspagelink" instead of the << or > > : <code> <?php wp_link_pages(array('before' => '<div class="pagenav"><strong>Navigate</strong>', 'after' => '</div>', 'next_or_number' => 'number', 'nextpagelink' => __('<img src="... | How to edit theme functions file to modify pagination? | wordpress |
I have installed the Seaweed (Wordpress Plugin) . I have successfully installed it and I can able to edit the content. But the save function is not functioning popularly. when I clicked on the "save button", the processing bar displays and nothing happens beyond that. Has any one try it ? Could any one help me to make ... | From what I read on the plugins description it's compatible with WP 2.9.2. Next to that I assume from the description that it interacts with the theme a lot. I would therefore install the Default (Wordpress Theme) and try if it works with that theme. Maybe it works with this theme? Maybe you just run into a Javascript ... | Seaweed Plugin not working | wordpress |
Let's say we are currently hosting our WordPress blog on certain domain and would like to move it to a new domain. How to do this with the least hassle and SEO hit? Are there any plugins that could help with this? (for example providing automatic cross-domain 301 redirection or similar) | I recommend handling the 301 redirect in your web server rather than in WordPress. mod_rewrite or RedirectMatch will be much more efficient than spinning up WordPress to deliver a <code> Location </code> : header. <code> <VirtualHost *:80> ServerName busted-cheap-url.com # mod_alias RedirectMatch permanent (.*) h... | How to transfer a WordPress blog to a different domain? | wordpress |
I understand that every time a visitor goes to a website, it triggers the PHP code that then demands system resources. My situation is that I have many websites, some not used, just sitting there, and I am wondering if they are demanding anything from my server. I know that there is wp-cron file, that is supposed to wo... | It's not likely an unused site is using mach resources except for harddrive space. There may be something left in memory but on a typical server thats doubtfull. google bots trigger the site exactly the same as a regular user except it doesnt load unnessasary files like javascript, css or images (except maybe for image... | Does a WP site consumes memory resources when there are NO visitors? | wordpress |
We're planning on installing WordPress on Windows Server 2008 to be consistent with the rest of our servers and leverage administrative expertise. The server will not be running anything else. Are there any gotcha's to be had for Wordpress on Windows versus Linux (outside of server licensing costs)? | I've installed WordPress on my virtual server running Windows Server 2008 R2. Installation was easy, no troubles. I installed PHP using Web Platform Installer. PHP 5.3 performs well on IIS7 and you can also use WP super cache to increase performance. There haven't been any downsides for me so far :) | Are there any downsides to installing WordPress on Windows versus Linux? | wordpress |
How to add automatically keyword to taxonomies when a post published, and assign them to the post for example i have in my post edition, a custom meta box, when you complete this input, a function should generate a group of keywords in background , and i want these keywords are automatically adding to a specific custom... | You would use the save_post hook, in your hooked function use wp_insert_term as described here: http://codex.wordpress.org/Function_Reference/wp_insert_term Then use wp_set_object_terms on the post to assignt he taxonomy term you just created as follows: http://codex.wordpress.org/Function_Reference/wp_set_object_terms... | How to add automatically keyword to taxonomies when a post published, and assign them to the post | wordpress |
A would like to create a website in WordPress that allows user to create wedding websites. What suggestions can you give me on how to implement it? | Hi @Humera Maniya: I've only got a minute to offer suggestions tonight but I thought I'd quickly point you to two (2) other answers here on this website that provide information you'll need. Much of what I'd suggest for your use-case is identical to what I recommended on these other answers: <a href="stackexchange-url ... | Suggestions for Implementing a Wedding Website in WordPress? | wordpress |
I am currently using Amazons Cloud Front service with the super awesome and easy to use W3 Total Cache wordpress plugin. All appears to be working correctly but I do get a chronic error in the admin panel from W3 Total Cache saying: Recently an error occurred while creating the CSS / JS minify cache: Some files were un... | Eric, Updating to the development version might solve the problem but I suggest submitting a bug report to Fredrick. This will help him in the development of the plugin and help you by determining the cause of the problem. To submit the bug report go to support in the plugin admin and fill in all the information and Fr... | W3 Total Cache plugin chronic message | wordpress |
By default, my site's RSS feed URLs are in this format: <code> category/[category-name]/feed/ </code> As far as I can tell, that doesn't allow me to view a feed using multiple categories. Is anyone aware of a simple workaround, or is this something I'll need to write myself? | Maybe this might help: http://wordpress.org/support/topic/how-to-create-rss-feed-that-includes-multiple-categories | How do I view a feed consisting of posts from multiple categories? | wordpress |
After enabling SuperAdmin and multisite functionality in WP3 many users are getting redirected to a sign-up url. I do not have account sign-up enabled, how do I turn this off? It seems to happen when any invalid subdomain is used including my-domain.com instead of www.my-domain.com. How do I fix? | I am answering my own question so others can find it in the future. defining <code> NOBLOGREDIRECT </code> in <code> wp-config.php </code> to point to the url of your choice will correct this problem. Sample: <code> define('NOBLOGREDIRECT', 'http://www.my-domain.com'); </code> | How do I fix unexpected redirection of visitors after enabling multisite on WP3? | wordpress |
Online researching shows that there are many plugins out there to perform caching on WP. Just to name a few: WP Super Cache W3 Total Cache WP Widget Cache DB Cache Reloaded 1 Blog Cacher Hyper Cache Is using just one plugin good, or is there a point in using more then one at the same time? | @Tal, Generally speaking you should only be using one caching plugin. WP Super Cache, W3 Total Cache, Hyper Cache and DB Cache Reloaded all drop files directly in your wp-content directory and they would conflict with each other and cause errors if you were using more than one. I would recommend using W3 Total Cache be... | How many caching plugins should be used? | wordpress |
I'm trying to get WordPress to highlight a specific item in my menu when a post (any post) is viewed. I'm thinking that adding the post to the menu item, then suppressing display of sub-menus might help, but my 'Menus configuration' page doesn't show posts as items to add to the menu. Does anyone know why that is, or i... | You should be able to take the body class (single) and the nav item class (to be determined) and specify the style you'd like to show in the stylesheet. Something like this: <code> .single .topnav-item-29 {color: #fff; background: #333;} </code> | How do I add a post to a menu | wordpress |
To Separate or Not to Separate...That is the Question? I currently have what I believe is a mistake in my site architecture. I initially built my two lines of business into the same site. Engineering/Design work and Equipment Liquidation. Learning the hard way I realize I need dedicated domains. I plan to use the same ... | Some time ago, I started a site that served as my professional portfolio. It was running on WordPress, so when I decided to add a blog it was really easy to just flip a switch and start writing. As time went on, though, I realized that the blog and the portfolio served totally different purposes - and I wanted to add a... | Splitting an Evolving Site into Multiple Sites, or Maintaining as One Site? | wordpress |
Is there a recommended way to log (failed) cron actions from your plugin? For example, I have a plugin that synchronizes with an external service every hour. I want to log how much was changed, but also when the synchronization failed. What would you recommend here? A new database table? The Log Deprecated Notices plug... | Use a file to write the events to. There are several drawbacks here; Filesystem permissions . When you deploy your app, you will have to take care to remember to give the webserver permission to write to the file. And to be extra sure, you'd have to write code which checks whether you can write to the file and issue a ... | How do I log plugin (cron) actions? | wordpress |
I have created a custom post type and added various meta boxes/fields to this custom post type. All is working excellent except for one element... Instead of utilizing the default interface for selecting a taxonomy I would like to just have a drop down menu for the user to select from. The idea here is to enable the ad... | I answered this question on a different post: stackexchange-url ("stackexchange-url | Custom Post Type - Taxonomy Dropdown Menu? | wordpress |
I would like to add a custom logo to my entire blog network's dashboard. I went trough a recipe on smashing magazine and got this code: <code> //hook the administrative header output add_action('admin_head', 'my_custom_logo'); function my_custom_logo() { echo ' <style type="text/css"> #header-logo { background-im... | If you want this logo to show up across your network sites regardless of the theme I'd advise you to create a new PHP file inside <code> wp-content/mu-plugins </code> (create the directory if it doesn't exist) and drop that code inside the new file. You can name your file whatever you like - for example <code> my-netwo... | How do you add custom logo to entire themes | wordpress |
Can I customize and edit the subject field in the "Password Reset" notification mails sent from our multisite blogs? I have tried some plugins like My brand login and white label CMS etc. But I can't edit this in password reset notifications . Does anyone help me understand how to edit it ? Update: Today I tried with a... | You can change them using a filter . The filter hooks you want to use are: For the first email message (confirming they really want to reset the password): <code> 'retrieve_password_title' </code> <code> 'retrieve_password_message' </code> For the follow-up email message (sending the new username and password): <code> ... | Customizing the Subject Field in WordPress' Notification Emails? | wordpress |
I have a page structure like this: <code> -Home -Cars -Volvo 640 - Pics - Info -Porsche 911 - Pics - Info </code> I'd like to generate a list of cars on the Cars page of all the cars (which are child pages of Cars). How would I do this? The list is basically a sub-menu which should show all the cars in alphabetical ord... | You could use <code> get_pages </code> to do this, like so: <code> <?php $args = array( 'post_type' => 'page', 'child_of' => 7, ); $postobj = get_pages($args); foreach($postobj as $item){ $dir = get_bloginfo('template_directory'); // Theme directory $title = $item->post_title; $parent = $item->post_paren... | How to generate a list of child pages, and use some of their custom fields? | wordpress |
Is there a way of manually specifying which page is currently "active" when using <code> wp_nav_menu() </code> ? I have a "Products" page, and on that page I have links to various (dynamic) custom taxonomies. When I click on one of these taxonomies, I stay on the "Products" page but <code> wp_nav_menu() </code> loses r... | If you just want to add the <code> current_page_item </code> class to one menu item, you could hook up to the <code> nav_menu_css_class </code> filter, and add that class if needed. It is called when the menu is printed. If you want access to the whole menu and add classes, hook in to the <code> wp_get_nav_menu_items <... | How to manually specify the current active page with wp_nav_menu() | wordpress |
Given that I can't access the dashboard/admin pages on my blog (that's a future question), and that I have shell access to my hosting server, can I find out the current version of WordPress from the command line? I tried grepping for the string '@since' in all the php files in the top level directory for the blog, and ... | grep wp_version wp-includes/version.php | Determining WordPress' Version from the Host's Command Line? | wordpress |
Related to this stackexchange-url ("question"). Any recommendation on tools, plugins for optimizing a large eCommerce site on WP. Currently hitting 1000 items and 5000 more items coming. It seems the optimizations would be different than a standard blog serving thousands of users. The number of stores being developed o... | I've developed a 55k product ecommerce site using Wordpress with the Shopp plugin and can share what I've done to MySQL to eke out better performance, YMMV and some (or all) of these may not apply to your situation. Determine how much you need to increase buffers/caches by by looking at the output from a "show status" ... | Scaling a WP eCommerce site | wordpress |
I have my wordpress install under svn. I was on version 2.9.2. These were the steps I took: saved a copy of my current wordpress directory cd into my top level wordpress directory <code> svn up </code> (just to make sure that I have the latest of 2.9) <code> svn sw http://core.svn.wordpress.org/tags/3.0.1/ . </code> (u... | I also used SVN before to update my wordpress installation. Up the working copied will get messed up very quickly with all the manual updates or files created by plugins. I would always recommend to use the update functionality of wordpress if you only want to step from one tagged version to another one. Although, I al... | Error upgrading from 2.9.2 to 3.0.1 | wordpress |
I was playing with: <code> $wp_meta_boxes </code> , <code> $menu </code> and <code> $submenu </code> global arrays to remove "things" on admin dashboard (using unset on PHP <code> foreach </code> iterations). Now I'm stuck trying to remove without using jQuery or JavaScript: Favorites action menu. Screen options panel.... | I once did extend the screen panels, putting a third one next to screen and help. But that was mainly by javascript. So you can remove them with javscript I'm sure. There were no hooks or so, that's why I opened a ticket as well with a patch because I thought that it would be useful to have. I got some traction lately,... | Remove favorites action menu and screen options panel | wordpress |
Hay I am creating my first wordpress plugin. Everything is going well so far. I have been able to add a new navigation tab to the dashboard which links to a function which basicalliy uses 'include' to spit the content of a HTML page onto the wordpress admin area. Heres my code <code> add_action('admin_menu', 'rooms_men... | Rather than include an HTML file, include a PHP file instead. Then, at the top of your PHP file you can check to see if any data's been submitted and process it before displaying the form. So instead of what you have, try: <code> function show_hotel_dashboard(){ include 'dashboard.php'; } </code> Then on the page do th... | wordpress plugin noob situation | wordpress |
I am getting a bit frustrated over here after having spent a few hours trying to accomplish this fairly simple task without any luck. Essentially I have 5 custom post types which I created and all I want to do is show each of them in a specific order directly under the "dashboard" . From the WordPress documentation it ... | Hi @BinaryBit: It's no wonder you are a bit frustrated; the admin menu is one of the most obtuse and frustrating implementations through WordPress core. Honestly, I don't know what they were thinking when they designed it that way. @EAMann did an excellent job of explaining how the admin menus work in WordPress (I wish... | Changing the Order of Admin Menu Sections? | wordpress |
Is this a good example of usage of <code> current_filter() </code> ? <code> <?php add_filter("_my_filter", "common_function"); add_filter("_another_filter", "common_function"); function common_function(){ $currentFilter = current_filter(); switch ($currentFilter) { case '_my_filter': echo "Called by My Filter"; brea... | Hi @Raj Sekharan : Looks good to me, but is wanting to know the current usage really your question or do you want to understand where <code> current_filter() </code> gets it's information from? If the latter, here's basically what happens in all the different hook processing functions, e.g. <code> do_action() </code> ,... | Is This A Correct Example Usage Of current_filter()? | wordpress |
With the new WordPress and it's new features, it seems like WordPress is capable of much more than a simple blog engine. But how well does WordPress scale being used by say 10k -> 100k users per day? With that many users a big part of it will be to have a good cache strategy, but how well is WordPress developed to help... | Hi @googletorp: Clearly nothing scales as well as static files served by a fast web server and any CMS that has to figure out what to load and then load it will not perform as well, WordPress or otherwise. One of the issues is the number of database queries required per URL request and my 2 prior years experience worki... | How well does WordPress scale? | wordpress |
At any one time I have a number of blog articles that are in draft. Generally, if I encounter something useful, I'll note it in a draft blog entry, to revisit, research and write up at a later date. So, while these aren't accessible from any hyperlink, I find I am still able to reference them by going to the link direc... | Yes, you (read: the logged in user) will be able to see the drafted post. But, a guest will not be able to read it. To test it, login to one browser and create a draft. See its URL in another browser where you don't login (no cookie, etc). | Stopping People Viewing Draft Posts | wordpress |
I've created a custom taxonomy called 'productCategories' using <code> register_taxonomy() </code> function. I've set the rewrite slug to 'products'. My question is: How do I render a different template to <code> archive.php </code> for my custom taxonomy /products ? Thanks, Jon | Create a template file called <code> taxonomy-productCategories.php </code> . For more information, see the Template Hierarchy . I find this image particularly helpful. | How do I create a custom archive page depending on the custom taxonomy type? | wordpress |
I was just wondering if something like this would work: The page displays a form, with a captcha code inside it. When this form is generated, a transient is set to store the captcha code. The vistor submits the form After submit <code> $_POST['captcha'] </code> is compared to the transient from the database; if matched... | I think that, while this method could be secure, there are many advantages to using an off-the-shelf captcha system, both in terms of the security of the captcha images/audio/media, and also in terms of performance advantages like caching. If you use a captcha widget which is JavaScript based, for example, the underlyi... | Using transients to store captchas | wordpress |
I have a custom post type that includes a custom taxonomy, called <code> client_name </code> . There is a page that loads these custom post types and displays them. What I need to develop is a dropdown list that displays all the custom taxonomy of those custom posts, which I have done, but I need to remove duplicates, ... | Hi @Hunter Brelsford: Good to see you here over from the WordPress Group on LinkedIn . Maybe I misunderstand your question but it sounds like you are simply trying to get rid of dups in an array? For example, let's say you have an array clients: <code> <?php $clients = array( 'Jones Construction', 'Smith Wholesale',... | Removing Duplicate Custom Taxonomy Terms from within a Dropdown Select? | wordpress |
I'm trying to show child-pages in a certain order, in a list. This is my code to output the pages as a list <code> $parent = $wp_query->post->ID; wp_list_pages("title_li=&child_of=$parent&echo=1&sort_column=post_title" ); </code> Now I want to show the first four of the pages in a particular order <co... | Based on your comments here is another option , using wp_list_pages and without having to work with arrays and pulling content manually, I'm leaving out a bunch of the options, just the bare essentials. <code> <ul> <?php $priority_pages = '5,1,3,7'; wp_list_pages(array('include' => $priority_pages); wp_list... | Listing Child Pages in a Certain Order? | wordpress |
I am wondering how to prevent WordPress from applying in-line styles to image enclosing div's in posts. <code> <div class="img size-medium wp-image-3267 alignright" style="width:190px;"> </code> Edit: The post is generated in the theme file by using <code> the_content() </code> . That width declaration is causing... | WordPress doesn't wrap <code> <image /> </code> tags with <code> <div> </code> elements by default ... so there's probably something in your theme or a plug-in on your site that's adding the element wrapper. I suggest switching to the default TwentyTen theme and disabling plug-ins to compare the generated m... | How to Prevent WordPress from Automatically Applying Inline Styles to Post Images? | wordpress |
We're running a WordPress multisite instance on two Rackspace Cloud servers, one web and one database, with 30 or so sites currently. I've put Nginx in front for static assets and Apache handles all dynamic requests. I've also configured Memcached for the database and APC op code caching for PHP. W3 Total Cache is enab... | The apache process memory amount you talk about (80 to 120 MB per process) can be split into two reasons. Apache Wordpress Apache You can optimize apache by only loading the number of modules you need and other optimization tweaks that will reduce the memory. If you have not optimized that yet, give it some tweaks. Wor... | What's the ideal way to profile WordPress memory usage? | wordpress |
The textarea in which posts are written and edited doesn't handle image layout very well. Inserted images seem to be aligned with the left edge of the textarea, or the right edge of the previous image. This is often hard to work with, and users have to understand that this isn't the way they will show up once published... | Add this to your theme's <code> functions.php </code> file: <code> add_editor_style(); </code> By default that function will load a file called <code> editor-style.css </code> which is located in the root directory of your theme. The functions accepts a filename or an array of filenames as parameter. Reference in the C... | Format the Layout of Images In The Edit Post Textarea? | wordpress |
I'm trying to archive my tweets in Wordpress and display recent ones in my sidebar. I've installed the Twitter Tools plugin, configured it, and added its widget to my sidebar. Twitter Tools is creating blog posts for each of my tweets, so I know it is authorized by Twitter successully. However, the sidebar widget just ... | I kept digging on this and I found that the Twitter Tools widget depends on a table called wp_ak_twitter. I didn't have this table, probably because my Wordpress database user doesn't have create table privileges. I create the table by hand and now the widget is working. | How do I get the Twitter Tools widget to display my tweets? | wordpress |
Imagine I have a site set up with pages in this kind of hierarchy.. <code> -Home -Cars -Volvo 850 -Volvo 850 tech spec -Volvo 850 pictures -Porsche 911 -Porsche 911 tech spec -Porsche 911 pictures -other cars etc </code> Now you can see that I have a bunch of Cars. On each of the car pages (Volvo 850, Porsche 911) I ha... | This one might get you started (this one is for the size as you can see since i do value 1 times value 2) (just to give an example of more advanced queries) <code> global $edl_global_join; global $edl_global_orderby; global $wp_query; function edl_posts_join ($join) { global $edl_global_join; if ($edl_global_join) $joi... | Getting Custom Field data from a page hierarchy | wordpress |
I've just created a draft on my blog, and it's post ID is 1. After creating another draft, the post id for this last post is 3! I was hoping to see them in sequential order, so in the future I'll have a nice auto-incremented numbering like <code> ../archives/1 ../archives/2 </code> some months later... <code> ../archiv... | The ID of a post is not meant to be a sequence number in the sense that for post N the following post is N+1. The ID is an auto-incremented field in the posts table, which includes many things that are not published posts, e.g., drafts, pages, attachments. So there is really no way to force WordPress to assign sequenti... | Change Permalinks Structure to a Sequential Number for Each Post? | wordpress |
I need mathematics on a WordPress site and I'm having trouble finding a suitable LaTeX plug-in. I've tried several solutions including MathJax (which is slow and renders inconsistently) and the WP QuickLaTeX plugin which works well but does not allow displayed equations (only inline equations) and stores all images on ... | 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 explain... | Recommendations for a LaTeX Plugin? | wordpress |
I wish to be able to give different ads to visitors of different "types". For example: People from country X will get one ad, while people from country Y will get no ads. First time visitors will get an ad. Returning visitors won't. The ad can be either google ads or something else. Any plugin or hack to do it? | There are systems that do something similar, particularly for Example 2. What Would Seth Godin Do , for example, stores a cookie in the user's browser that tracks the number of times they've visited the site. If they're a new visitor (have visited less than 5 times), it displays a message suggesting they subscribe to t... | Offering Ads Dependent on Visitor Type? | wordpress |
I wish to tag visitors who came to my site and clicked the RSS button. My goal is to "Segment" this visitors in Google Analytics, so I'll be able to see where my "new readers" are coming from. How can it be done in WordPress? | The best way is to track this in Feedburner - that will tell you how many "subscribers" you may have at any time. If you want to track how many people click on your RSS feed link on your WordPress site you can tag the link with some Google Analytics tracking code. See http://www.google.com/support/analytics/bin/answer.... | Tracking RSS subscribers in Google Analytics | wordpress |
So I continue to run into this issue and I just looking for the best and simplest solution to solve this problem. I have come to make use of custom post types in many different projects and have extended these with custom metaboxes which I have then further extended by adding custom scripts such as jQuery event calenda... | First, I assume you are using <code> wp_enqueue_script() </code> to load your scripts , right? That said, if I understand your question then what you need is something like the following . You'll have to edit it for your details, of course, but it gives you the general framework. We are hooking <code> admin_init </code... | Loading External Scripts in Admin but ONLY for a Specific Post Type? | wordpress |
Am I allowed to remove the "Powered by WordPress" link in the footer? | Yes WordPress is licensed using the GPL v2 license so you are "free" to do whatever you want to with it ( "free" as in "free speech" , not "free" as in "free beer!" .) | Removing the "Powered by WordPress" Link? | wordpress |
I know how to do it manually, but is there any tool to help me with that? | Here is a free and good step by step tutorial with video. How To Convert an XHTML Website Template into a WordPress Theme http://www.jonbishop.com/2010/03/convert-html-wordpress/ There are many tools on market which claims to PSD/Xhtml 2 Wordpress http://www.divine-project.com/ http://www.artisteer.com/ http://www.arti... | Tools for Converting an Existing Website Design to a WordPress Template? | wordpress |
I'd like to create an "All Posts" page on the Ocean Bytes blog that contains an unordered list of all Titles of the posts to date, with each title hyperlinking to its blog post. There appear to be several plugins that do something like this, but most do not list Wordpress 3.0+ as supported yet, or they want to subset t... | I ended up creating a page template called "allposts-page.php" in the Twenty-Ten Themes folder containing the following code: <code> <?php /** * Template Name: All Posts * * A custom page template for displaying all posts. * * The "Template Name:" bit above allows this to be selectable * from a dropdown menu on the ... | Create an "All Posts" or "Archives" Page with WordPress 3.0? | wordpress |
Just wondering if people have any thoughts around the best way to setup Wordpress 3 to use for development, staging and production. I currently have an install that I just use for dev, before moving the files to stage for a friend to review. This normally goes back and forwards for a while until they are happy. Then it... | Ok i've found a couple of solutions if anyone is looking. They aren't perfect but they are doing the job. For the main development period before go-live I use Deploymint (http://markmaunder.com/2011/08/19/deploymint-a-staging-and-deployment-system-for-wordpress/). This is based on Git and is great for your moves betwee... | Wordpress 3 MU for a development/stage/production site | wordpress |
How do you set up routing rules correctly with Nginx to support WP Super Cache for a WordPress (3.x) site? | Hi @jschoolcraft : Does this articles address your question? WordPress, Nginx and WP Super Cache If not, maybe there would be something in these? HOWTO: Install WordPress On Nginx WordPress + nginx Compatibility Plugin Howto nginx + wordpress + ubuntu shortest setup Nginx front-end proxy cache for WordPress WordPress P... | Configuring Routing Rules for WordPress+Nginx and WP-SuperCache? | wordpress |
I am building a website for a charity event and i would like for people to register for this event. The form should contain name, email and other custom questions. Also I would like a page where to list the persons registered. I was thinking of using the user system + a plugin for listing the user list. What plugins wo... | Hi solomongaby: Forms For the form I would suggestion using GravityForms . It's super easy to use to design and post a form, and here's an example form we made for requests to be a presenter . GravityForms is $39 per server but if you ask they may be willing to give a charity a free copy? Registration I would probably ... | WordPress Plugin for One-Time Event Registration? | wordpress |
I'm looking for something like they are using here: http://www.jennyreviews.com/as-seen-on-tv/triple-joint-formula/ Look under "Related Product Reviews" I checked the source but could not find the plugin code listed. Maybe its a widget? | @Scott B , It looks like they are using a related posts query based on category. When a single Item (post) is being displayed the query looks up the category id then displays posts from the same category. Add The following code to your sidebar or even to the bottom of single.php depending on where you want to display t... | Related posts widget or plugin needed | wordpress |
I've been plugging away with WordPress for some years now. In that time, I've never really taken time to fully understand the platform. It powers my site, and that's been enough. But I feel I need to know more about the system to get the most use out of it. Please suggest any books that cover WP in some depth. I don't ... | Hi @Grant Palin : If you are like me you probably view most books as being much too simple to really learn anything useful from because publishers are always trying to dumb them down to reach a broader audience. If you are like me, these two are probably some of the better books on the market because I think they are a... | Recommendations for an In-Depth WordPress Book? | wordpress |
I have written a plugin that puts a (google) favicon in front of each link in my blog. Really simple. Just uses a simple preg_replace_callback on hrefs: <code> $changed_html_reference = preg_replace_callback(self::HTML_REF_REGEX, array($this,'AddExtraHtmlToOneHref'), $strHtmlBodyText); </code> with a <code> add_filter(... | Most of WordPress caching functionality is set up with text (serialized if needed) in mind. Since you need to store binary data it is probably better to maintain own cache. As for location of cache I think it depends: for single personal installation I would pick directory that is short and makes nice URL, for example ... | Plugin a specific cache functionality? | wordpress |
Is there a way to add a arbitrary hyperlink to the WordPress admin menu (I mean the menu on the left when you log into the admin dashboard)? For example, can one add a link to Google? In my particular case, I'd like to add a styleguide page for a Wordpress theme I'm working on so I can show the user how different HTML ... | Hi @Tom , If I understand your question correctly you don't so much need to know how to add a link to the menu (it seems you already know that) but instead need to learn how to get your link to redirect correctly, right? Redirecting to an External URL from an Admin Menu Item If so what you need to do is to not use the ... | Adding an Arbitrary Link to the Admin Menu? | wordpress |
I currently have this: <code> mysite.com/product-name mysite.com/another-product </code> etc where product-name and another-product are posts. I then have a custom post type called Changelogs, which I have for each product, is it possible to have the url something like: <code> mysite.com/product-name/changelog mysite.c... | There is no such thing as "Sub Posts" in Wordpress already built in. But it could be possible that you create a plugin that is introducing "Sub Posts" in the style you describe them. Technically you're not talking about subposts but about the URL-Layout. So in Wordpress you add an endpoint ("changelog") that you can ha... | URL Design for Sub-Posts? | wordpress |
The pages like "about" will be created automatically when a new blog is created. Likewise I need some other pages which should appear automatically when a blog is created under my multisites. How can I configure the default pages to be created with a new blog under a multisite? For ex.: If I have a multisite on <code> ... | I recommend creating a function in your functions.php file that ties to the action hook <code> activate_blog </code> . Use the WordPress functions get_pages() to see if your default pages exist. If they do not, create them with wp_insert_post . <code> add_action('activate_blog','my_default_pages'); function my_default_... | Can I set some default pages to be created on every creation of a new blog | wordpress |
I started developing a site with over a dozen custom post types. I'd like to rename a few of them, not just the display value, but the actual custom post type name. I'm worried however that by just running a SQL update query that I'll miss some places where I need to change things or overwrite part of serialized data. ... | SQL query for renaming the posts: <code> UPDATE `wp_posts` SET `post_type` = '<new post type name>' WHERE `post_type` = '<old post type name>'; </code> SQL query for renaming taxonomy: <code> UPDATE `wp_term_taxonomy` SET `taxonomy` = '<new taxonomy name>' WHERE `taxonomy` = '<old taxonomy name>... | Renaming Custom Post Types and Taxonomies | wordpress |
We have template tags and some functions that start with get. Sometimes it would be just nice in themes to do like: <code> $title = the_title(); </code> to use the html later on. This is just a simplified example, naturally there is some function like get_the_title(); But that works for that function only. I'm wonderin... | In direct response to the question, WordPress does not include a function for this partly because it does not specifically apply to WordPress functionality. I.e. it's a PHP (potential) problem, not WordPress. Also, I wouldn't say it's WordPress' responsibility to provide workarounds for plugins etc that don't provide a... | Why is there no global function in wordpress to return the output of any function call? | wordpress |
I am using an attachment.php file to show large versions of images that have been clicked on elsewhere. I'd like to pull the image alt text as a caption under the image with javascript, but the alt text isn't included when when wp_get_attachment_image_src() is used. I don't think WP has a function to retrieve it, so I ... | I recently did some research for a client project recently so lo-and-behold I get to use it here! After the text you'll see a categorized list of most (all?) of the image handling functions from within WordPress 3.0.1 (I grouped them in some semblance of order but don't put too much credence in my categorization.) Anyw... | How To Retrieve An Image Attachment's Alt Text? | wordpress |
How can I get a total word count of one author's posts? I would like to be able to see what the total word count of their output is, summed across all of their posts (ideally with a breakdown by category/tag/page-or-post). There's gotta be a contemporary plugin for this. | I use a plug-in called Post Word Count to sum the total number of published words across my entire site ... then again, I'm the only author, so this is a pretty simple example. But you could start with this plug-in and add a filter that changes the query based on the author's ID. Basically: <code> function post_word_co... | Total Word Count For Posts By One Author | wordpress |
Is there an easy way to limit to one (per post) the number of images to upload through media upload? | I won't go into the code specifics right now, because I am not sure if you need me to. You essentially need to modify the <code> SWFUpload </code> JavaScript settings array to set the <code> file_upload_limit </code> to <code> 1 </code> . Unfortunately I don't believe SWFUpload allows you to change that settings variab... | Restrict the number of images to upload per post | wordpress |
I have been looking at the plugin API a bit more in depth recently and I was wondering what real differences there were between action and filter hooks . They both are events that receive data as a parameter and they seem to both be able to do the same things. Obviously I see that actions are called when actions take p... | Hi @Sruly : You've pretty much answered your own question, but I'll elaborate a bit. Action Hooks Actions Hooks are intended for use when WordPress core or some plugin or theme is giving you the opportunity to insert your code at a certain point and do one or more of the following: Use <code> echo </code> to inject som... | Difference Between Filter and Action Hooks? | wordpress |
Hey guys. Is there a plugin out there that can easily notify a user of a follow up reply to their comment? I used to use subscribe to comments but it hasn't been updated since 2007. Also, I think I remember being the 'unsubscribe' process to be pretty tedious or confusing. I would like it if each email had an 'unsubscr... | Subscribe to Double-Opt-In Comments | Comment Follow-Up Notifier? | wordpress |
Ok, so I'm using the WPAlchemy class to create custom field write panels in the write post page, and so far everything has gone great... However, there's one issue I can't seem to figure out. I'm trying to use the custom field values of "event dates" to sort events on a custom page template. I followed the instructions... | Josh, take a look at: http://farinspace.com/wpalchemy-metabox-data-storage-modes/ ... I am thinking I will be changing how WPAlchemy stores values by default ... making EXTRACT mode default ... | Sorting WordPress Posts via Custom Field Values? | wordpress |
We're working on a plugin where any logged-in user has the ability to submit a new "pitch", or standard post type with custom status of "pitch". Once the pitch is in the system, other logged-in users can vote on the idea, volunteer to participate, or comment on the story in progress. It was simple to list all unpublish... | Answered my own question on this one. As it turns out, it was pretty simple in WordPress 2.9.2. Basically, I applied a filter to 'the_posts' which would run another query if the object was empty. Because we're looking up posts that haven't been published, we need to use our own custom SQL as well. Trying to use the WP_... | Showing Unpublished Posts to Logged-out Users? | wordpress |
Is there a way to automatically register widgets when a new site is registered with a multi site setup? E.g. inside <code> wpmu_new_blog </code> ? | In your themes <code> functions.php </code> file you can check wether or not it get's installed for the first time on that blog. This can be done by using an option. An option can be set to flag that it's installing. This option that signals that an install is immanent can be used in a hook of the <code> init </code> j... | How to automatically register widgets on new blog? | wordpress |
I have different menu items. When the user clicks on a menu item, I want them to go to a particular destination. Each menu's destination has a different background color. I'm thinking that I can pass a variable around and based on the value, I can set the bgcolor. This is just one example of why I want to pass data aro... | I have different menu items. When the user clicks on a menu item, I want them to go to a particular destination. Each menu's destination has a different background color. When you say destination I assume you mean page or post. If you use WordPress's built in body class and post class you can target the page or post in... | How to pass data around? | wordpress |
I have a client that strongly prefers to disable .htaccess files because they like to set the Apache configurations themselves. However, they still want SEO-friendly URLs. Is there a way to have custom permalinks with no .htaccess file? My research thus far seems to indicate this is not possible, but perhaps one of bri... | Hi @Mike Lee : To answer your question it is helpful to understand how everything works. Apache Serves URLs that Match Files and Directories Apache is designed to serve files explicitly matched by URL, or to serve the <code> index.php </code> found in a directory when the directory is explicitly matched. But Apache Can... | Setting up WordPress with Custom Permalinks and no .htaccess File? | wordpress |
I've submitted a few patches for WordPress core on Trac (one of which has been used) but every time I think about doing it I cringe because my setup for doing so is incredibly tedious. Can someone please detail out the steps needed to submit a patch for core, and then the best way to streamline the process so it's not ... | The easiest way to create a patch is described here: http://wordpress.org/download/svn/ Can I create patches from older version or must I use trunk? You should create the patch against the same version you want it applied against. In other words, don't expect a patch created against WP 3.0.1 to apply cleanly on WP 3.1-... | Easiest Way to Create a Patch for Submission to WordPress Core? | wordpress |
Is it possible to create multiple "custom background" administration pages? A site I'm doing now needs 2 different background in 2 different areas, I would really love giving my client the same experience for both backgrounds in terms of colour/image/select-repeat etc. Any Ideas? | Hi @Amit: The answer is "Yes, it is possible." The follow up question is "Do you really want to?" I thought it would be fun to see if I could build a plugin to do what you are asking for so I decided to see if it was possible. Of course I was able to make it work but I fear that the plugin code I wrote needs to be so t... | Multiple Custom_Background, is it possible? | wordpress |
The following snippet is from a sidebar widget that lists "recent posts". Since its on the home page and I feature my lastest sticky post prominently on that page, I want to skip over the sticky in this loop. However, the <code> post_not_in=sticky_posts </code> has no effect. <code> <?php $the_query = new WP_Query("... | I took @tnorthcutt's answer from WordPress' Codex on <code> query_posts() </code> about Sticky Parameters and created a tandalone example you can drop as <code> test.php </code> into your website's root and see it run by navigating to a URL like this, with your domain substituted: http://example.com/test.php Some notes... | Excluding Sticky Posts from The Loop and from WP_Query() in WordPress? | wordpress |
By default, WordPress shows previous and next links when content is split onto different pages. Is there a way to get it to use proper pagination (with numbers), perhaps with a plugin? | yes, try wp-pagenavi http://wordpress.org/extend/plugins/wp-pagenavi/ | Displaying Numeric Pagination vs. Previous and Next Links in WordPress? | wordpress |
I would like to add Google custom search to my wordpress.com site. I have pasted HTML code from custom search to text widget in a sidebar, but instead of search box, I got text: <code> Loading google.load('search', '1', {language : 'en'}); google.setOnLoadCallback(function() { var customSearchControl = new google.searc... | JavaScript is not allowed on WordPress.com blogs. | Add Google custom search to wordpress.com | wordpress |
Some WordPress themes have their links encrypted in the footer and I am not able to edit them if I want to edit the links. This is the example code I found: <code> <?php </code> <code> eval(base64_decode('Pz4gCQkNCg0KCQk8ZGl2IGNsYXNzPSJjbGVhciI+PC9kaXY+DQoNCgkNCg0KCTwvZGl2Pg0KDQoJPCEtLSAvTWFpbiAtLT4NCg0KCQ0KDQoJPCEt... | Well, this is the output from that function: <code> ?> <div class="clear"></div> </div> <!-- /Main --> <!-- Footer --> <div id="footer"> <?php the_time('Y'); ?> <?php bloginfo('name'); ?> . WordPress . <?php if(is_home()) : ?><a href="http://wordpressthemesfor... | Editing Links in the Footer of WordPress Themes with Base64 Encrypted Code? | wordpress |
I w'd like to know If I can Integrate my other web-sites created to my wordpress multisite using the CMSs like Dolphin ( integration discussion ) Oxwall status.net sharetronix peoplepods yetanotherforum vidiscript Tikiwiki shapado (script, inspired by stackoverflow) ( seems to integrate with wordpress.com via OpenID ) ... | Integration is a topic at large. There are many strategies on how to combine multiple webapplications under one site-design and URL-layout. This normally means you have to make up your mind first on how to combine and integrate the applications. Normally app exists next to each other sharing a menu, header and a footer... | I w'd like to know If there are simple solutions to integrate other CMSs to wordpress | wordpress |
How can I disable automatic linking? For example if I write http://www.test.com I don't want it converted to a link. | WordPress does not automatically convert URLs to hyperlinks. | Disable automatic linking | wordpress |
I've got a subdirectory in which I'd like to implement a completely different theme for my site (basically, its a sales letter). Can someone tell me how to do that? Do I need to install a separate copy of wordpress in the subdirectory? | To slightly sidestep your actual question, the template hierarchy allows you to have a custom handler for any post ID, category, taxonomy term, etc. That may be the quickest way to solve your problem: just create a template file that stands on its own and only serves request to one post (or category, or however the sal... | Using Multiple Themes in a Single WordPress Site? | wordpress |
I've changed a file <code> wp-content/languages/pl_PL.po </code> <code> #: bfa_header.php msgid "notice" msgstr "napis" msgid "Online Information Website" msgstr "Internetowy Portal Informacyjny" msgid "something" msgstr "coś" </code> I've added the second pair. It works for another language, but doesn't work for this ... | Looks like you may not be able to just add a pair to your .po file, without first adding it to the wordpress.pot file: http://codex.wordpress.org/Translating_WordPress#gettext_files . You'll also need to compile your .po file into a .mo (Machine Object) file in order for your changes to take effect. I'm not certain tha... | One of the messages in .po file doesn't show up | wordpress |
I am using the plugin wp-multi-network(http://wordpress.org/extend/plugins/wp-multi-network/) to maintain child networks under multi site.Using this I can create child networks.But I can’t set sign up functionality to child networks .And If the main network is mainnetwork.com and childnetwork has the domain like childn... | I suggest you start over with that in the Wordpress Support Forums of the WP Multi Network Plugin . I can only suggest this because I do not have any special experience with that plugin and I assume that it has DNS implications for the hosts you'd like to use it on. Additionally you might want to make your question mor... | Does any one have Idea to get these functionalities with the plugin wp-multi-network | wordpress |
How can I disable the default feed on WordPress.com and use Feedburner feed instead? I know how I can in a self-hosted WordPress site, but I do not know how to in a free WordPress.com site. | EDIT You can not disable the default WordPress.com feed but you have an option: If you have the css upgrade, add <code> #feedarea {display:none;} </code> to remove the default links. Use the feedburner widget code and add it to a text widget. Assign a class to it and using css absolute positioning move it to where the ... | Use Feedburner instead of default feed on WordPress.com? | wordpress |
I'm at a loss with this. Do you see anything wrong with the code below specific to the noindex, nofollow checkboxes? The meta box gets drawn to the screen fine, but the values do not stick. The code for the custom page title and custom excerpt works fine. <code> // =================== // = POST OPTION BOX = // ========... | I'm not sure but I think the simple answer is you have not yet added <code> "noindex" </code> and <code> "nofollow" </code> as categories to your site . Go to the category page in the admin and add them and then I think your code will work, it did for me: http://example.com/wp-admin/edit-tags.php?taxonomy=category Of c... | Categories for Pages Not Saving in Admin with Custom Categories Metabox? | wordpress |
What are the differences between using <code> WP_Query() </code> and <code> get_posts() </code> ? Which is better to use in what case and why? | Well, <code> get_posts() </code> actually instantiates a new <code> WP_Query </code> object, so if you're comfortable using <code> WP_Query </code> directly, don't even bother with <code> get_posts() </code> ; <code> get_posts </code> will only return the results from the database, whereas <code> WP_Query </code> gives... | Differences Between WP_Query() and get_posts() for Querying Posts? | wordpress |
Is it possible to get your WordPress site to upgrade itself automatically? What I mean is, when plugins etc. needs to be upgraded, can you just press a button, or have a cron job, download the new update and handle whatever else is needed, so your WordPress site always is up to date? | If you're using the most recent version of WordPress, there are two ways you can update your plugins by just clicking a button (OK, maybe a couple, but it's still really easy). Under Dashboard in your WP admin, there will an Updates option. Click on that and you should see something like this: Choose Select All and the... | Plugin for automated upgrade of WordPress core and it's plugins? | wordpress |
I would like to use Google Search as opposed to the built-in search provided by the WordPress engine. What would be the best way to integrate Google Search? | There are a couple of plugins that provide this functionality: Google Custom Search Plugin Google Ajax Search | Best way to Integrate Google Search? | wordpress |
I'm currently trying to develop a plugin that will embed a Google Earth Tour into a WP post / page via a shortcode. The issue I am running into is that for the tour to load, I have to add an <code> onload="init()" </code> into the <code> <body> </code> tag. I can modify a specific template file, but since this is... | Did some more digging and found a 'better' way to get it working (Google makes it hard to get their damn Earth Tours embedded, and their gadget doesn't work). I ended up making a plugin that uses a combination of a shortcode and a custom field. | Adding onload to body | wordpress |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.