question stringlengths 0 34.8k | answer stringlengths 0 28.3k | title stringlengths 7 150 | forum_tag stringclasses 12
values |
|---|---|---|---|
I have an interesting problem which I hope someone can quickly answer. I have created my own metabox which, based on "MY METABOX CODE" (list below) is correctly displaying a dropdown list of all my terms within the "event_types" taxonomy I created. Where I am running into an issue is being able to SAVE/UPDATE the term ... | I figured I would post the answer to this after Dimas was able to assist me. Utilizing his WPAlchemey Class I added a save_action var which looked like this (note that I am using the taxonomy for "category" which of course you can change to whatever your custom taxonomy might be): <code> 'save_action' => 'save_taxon... | Saving Taxonomy Terms | wordpress |
I need to create a custom post meta box(es) for my custom post type "Slideshow" (this post type is already created). Each metabox will hold the content in each slide slide and save it to corresponding custom fields. Each metabox should contain the following fields: Title (Text Field) Image (Either a Text Field for the ... | From the looks of things, your safest bet and easiest route would be to fork the More Fields plugin specifically for your use. The two biggest features I can see your fork needing are a field "factory" and a drag-and-drop interface. Multiple Fields My suggestion would be to look at the WordPress Widget class and use it... | Help Creating a Slideshow Custom Post Type with Custom Meta Boxes? | wordpress |
Some links on my site take the user to a specific post in context on a category page . On non-WP sites, this is easily accomplished by including <code> #example-div-id </code> in the url like this: <code> http://www.example.com#example-div-id </code> But in a WP environment, this url isn't working : <code> http://www.e... | As I've stated in updates to my question...other javascript working on the page conflicts with the anchor jump. I implimented more js to work around the conflict. The url almost looks the same as before, but with a parameter name inserted before the pound symbol, <code> http://www.example.com/?cat=15&hi=#post-170 <... | How to use div -ids in url to jump to specific post...Is trailing slash the culprit? | wordpress |
In my current theme version, I'm registering sidebars with names. However, in previous versions, I only had one sidebar and registered it without a name like so... <code> if ( function_exists('register_sidebar') ) register_sidebar(array( 'before_widget' => '<div class="menu side %2$s">', 'after_widget' => '... | Try moving registration of <code> Sidebar </code> sidebar to be first. I had an impressions that widget should move to that special "unassigned" area in this situation, but maybe that only works between themes, not changes in same theme. | Sidebar Widget Registration without a name, how is it assigned to new named sidebar widget? | wordpress |
Is it possible to write a virus in a form of a WordPress plugin/theme? Is it possible to: steal user data? damage existing WordPress installation? (optionally) self-spread the virus? Are there any existing cases of this kind of viruses? | When you write PHP code, you can do just about anything. So when you run the code of a plugin it can do just about anything as well. It can query the database and get whatever info is there (which is why it's a good idea to store passwords as hashes.) Since it can query the database, it can also delete anything in the ... | Can a WordPress plugin or theme contain a virus? | wordpress |
How do we edit and remove link backs to theme Developers from theme settings page ? Some themes which we install on site has link backs .How do you edit them from multisites? Does any body have Idea on removing these links? I want to edit the Links Like "Mystique 2.4.2 by digitalnature " . | Basic idea is to search theme files for text of the link and remove code that inserts it. Best case scenario it would be single line to remove. Worst case scenario - link would be added by highly obfuscated code and rigged to break theme if link is removed. Since theme you referenced is in official theme repository it ... | How do you remove Link backs on Theme settings page? | wordpress |
I have a post here: http://www.food101.co.il/?p=5993 Where the image is overlapping the sidebar. I wish to shrink the image, but I want something that will do this without me editing the post (why? because the author is not me - and I want an automated system) Is there a plugin or a CSS solution that can do this? (as c... | Quick fix via CSS would be using max-width property to style images inside posts. Unfortunately it is very unreliable in Internet Explorer. <code> .entry img { max-width:500px !important; } </code> Also in your specific case image has size defined with inline style and it interferes. Plugin method would involve scannin... | How to limit image size for the entire website ? But without editing the post (css/plugin?!) | wordpress |
I use the get_page_children() function to create a sub_nav for a designer client I do work for. She uses the Spry Assets flyout JS that DreamWeaver creates, so I have to manually do the menus like this rather than use the new menus functionality in WordPress. I had them all set up and working perfectly, and then my cli... | I don't have enough pages to test, but I have an idea that 10 is default pagination number. <code> $all_wp_pages = $my_wp_query->query(array( 'post_type' => 'page', 'posts_per_page' => -1 )); </code> If this doesn't work I will try to find some time to generate bunch of pages and test. | I'm having a lot of trouble since upgrade to 3.0.1 with get_page_children() function | wordpress |
I want to disable shortcode captions for posts in one of my themes, and display the content elsewhere, such as in a sidebar. The images aren't uploaded to wordpress, but they're linked-to using the post editor's add an image -> from URL functionality resulting in the following shortcode: <code> [caption id="" align="al... | Try this: <code> $caption_info = array(); add_filter( 'img_caption_shortcode', 'capture_caption', 10, 3 ); function capture_caption( $blank = '', $attr, $content ) { global $caption_info; $caption_info[] = array('attr' => $attr, 'content' => $content ); return ' '; } </code> It will save info from all captions in... | How to display a shortcode caption somewhere other than the_content | wordpress |
In regards to my previous stackexchange-url ("question about shortcode captions"), it doesn't appear to me that the actual text of a caption is stored anywhere other than in the post content within the shortcode itself. I would have thought that <code> wp_get_attachment_metadata </code> would store the info for an atta... | Yes, it stores the caption in it's own place in the DB. I can't quote the exact location but in Wordpress, "Attachments" are a post type and it stores each attachment just like a post. For an attachment post type, it treats the Image Caption as <code> the_excerpt </code> the Image Description as <code> the_content </co... | Are captions stored anywhere? | wordpress |
is that possible, without javascript hacks? like this: <code> <ul class="my_menu"> <li class="first"> ... </li> <li> ... </li> <li> ... </li> <li class"with_sub"> ... <ul class="my_menu_sub"> <li class="first"> ... </li> <li> ... </li> <li... | A better and simpler approach: <code> function add_first_and_last($items) { $items[1]->classes[] = 'first-menu-item'; $items[count($items)]->classes[] = 'last-menu-item'; return $items; } add_filter('wp_nav_menu_objects', 'add_first_and_last'); </code> | Adding first / last CSS classes to menus | wordpress |
I am getting an error message When uploading some themes . <code> Warning: fopen(/home/..../public_html/...../wp-content/themes/creativeart/style.css) [function.fopen]: failed to open stream: No such file or directory in /home/...../public_html/...../wp-includes/functions.php on line 4165 Warning: fread(): supplied arg... | From the looks of things, it's a server issue. The WordPress theme uploader uses <code> fopen() </code> to transfer files from one location to the server. It looks like there's a timeout or access error because a) <code> fopen </code> can't find the file that it's supposed to be transferring and b) the <code> fread </c... | I am getting an error some times when uploading themes | wordpress |
Our passwords are handled by an external LDAP server and the plugin we're using to therefore removes all references to the ability to change passwords. What I'd like to do then, is add a link to the users profile editing page (where they get taken after clicking on their name) which points to our password change page. ... | I assume you mean <code> /wp-admin/profile.php </code> page and want to hide native password fields. Try this (just test if form works ok with it): <code> add_filter( 'show_password_fields', 'modify_profile_password' ); function modify_profile_password( $show ) { ?> <tr id="password"> <th>Change your pas... | How would I add a link to the profile editing page of the dashboard? | wordpress |
i have <code> add_options_page('Post Products Settings', 'Post Products Settings', 'administrator', 'pp_settings', 'pp_settings_page'); </code> anyway i can get whats specified in the 1st parameter for use in my page header? i know i can hard code it tho, but just curious | There are a few ways you can do this. My preferred way of doing this is using Object Oriented Programming (OOP) to structure the plugin. For example, I might do this: <code> class JPBTitle { var $page_title = "Post Products Settings"; function __construct(){ add_action( 'admin_menu', array( $this, 'admin_menu' ) ); } f... | How can i get the title i specified in add_options_page for my header | wordpress |
I am about to have to write a script to take a fresh install of WordPress 3.0.1 and add-in all the initial features for a website . This is for a company that installs lots of similar websites and they need a standard starting point in configuration and data. I'm wondering if anyone else has already done this and if so... | As I mentioned I was going to be start working on this need immediately so I'm making headway. Given that I'm knocking these down I figured it's best to start posting them. Still, if someone else can/will post (some of) the parts I haven't done I'll be happy to let you copy whatever I'd done you haven't and select your... | Initialization Script for "Standard" Aspects of a WordPress Website? | wordpress |
in the book professional wordpress, they use something like <code> $options = array( 'classname' => 'pp_widget', 'description' => '...' ); $this->WP_Widget('pp_widget', ..., $options); </code> but in most tutorials <code> $this->WP_Widget(false, ... </code> is used. i wonder is there a reason to specify the... | The reason is simply customization (these values end up in widget's HTML markup). If someone needs to change this stuff (for example to be compatible with some script without adding wrapper layers) the option is there. As for methods calling - <code> parent:: </code> explicitly calls method from parent class, <code> $t... | Widget constructor: about $id_base and $options | wordpress |
I'm looking to build a member directory for one of my WordPress sites that hooks into the Facebook API. Site users would be able to browse through the directory of members and view their Facebook profile and information such as e-mail address, phone number, website, etc. Basically, I'm thinking that members will need t... | Hi @Nate Dudek , I think you'll likely want to start with BuddyPress as it is essentially a "Facebook-in-a-Box" , albeit a much more limited version of Facebook. It'll have more of the data structures you need to integrate with Facebook in the manner you describe. Beyond that you might find these articles helpful: How ... | Building a Member Directory Site on WordPress with Facebook API Integration? | wordpress |
What do you all use for live blogging? I've found Live Blogging by Chris Northwood (more than I need) and Twitter LiveBlog by Mashuqur Rahman (I want it to stay within WordPress). Are these really the only two games in town? | I wrote my own Liveblogging platform, which turned out to be very simple to do indeed. Sadly, it's not ready for release yet. In practice, all you need is a page with a form which writes to a database. Now; liveblogs tend to get hammered, so I created a page which used my templates as a flat file (so no database calls)... | Live blogging plugins? | wordpress |
I am having a doubt about using "Cron Job" . I have installed a Plugin named FeedWordpress which lets us to publish RSS feeds .It has given me an option to publish automatically or to publish by setting cron Jobs . Could any one guide me to set these Cron Job? I have no Idea on it .This is the message it given for that... | Cron is job scheduling mechanism in Unix-based operating systems. It depends on your hosting if you have access to it. Since WordPress needs to run some tasks periodically it has own PHP-based mechanism called WP-Cron that is both used by core and accessible to plugins. Basically OS cron is more reliable, WP-Cron is mo... | Help needed to make my site as Aggregator | wordpress |
How do you add Read more ...link to a particular post or to all posts in a blog ? | <code> Read more </code> links usually appear under following conditions: Template uses <code> the_content() </code> function for display. Post has <code> <--more--> </code> tag in content, which creates <code> teaser </code> . Result is <code> teaser </code> , followed by <code> read more </code> link. Sometimes... | How do you add Read more ... link to posts? | wordpress |
Is there a way to let my users define the crop area of a post thumbnail? The thumbnails always are existing post attachments, I would rather not create an extra attachment per thumbnail. The post thumbnails should be 200x100 pixels, and come from one of the images used in the post. So in my ideal world, when you click ... | The code is still a mess, but it seems to work, even on IE 8. I plan to release it in the repository, but in the meantime you can play with my current version. To access it you click the "Edit Image" when adding or editing an image, it replaces the usual image editor (they are very hard to combine). Since most of the a... | User-friendly cropping of post thumbnails? | wordpress |
One of the things that attracted me to the WordPress platform was the plugin API and large selection, but more recently I have been self developing before looking for plugins, only using plugins for things that I don't feel I would be able to complete on time and in budget. So what do you do when you need functionality... | There are several things I consider when making such choice (in no particular order): does task involve general functionality (plugin) or processing my specific content (develop) is there the plugin for the task from known developer and well-maintained (plugin) or there is fractured field of numerous plugins (develop) ... | Self Develop or Plugin as first option? | wordpress |
is there a list of plugins that are in use on WordPress.com somewhere? It would be very interesting to see how they have implemented specific widgets and functionality. | Not an easy question to answer. That stuff is mostly private and they seem to use greatly modified versions of some public plugins. wordpresscom tag in repository has several. Also see this topic for more ideas and places to check List of plugins used on WordPress.com | What plugins are in use on wordpress.com | wordpress |
We use wordpress like a CMS and would very much like to allow users to have a "homepage". Ideally they'd be prevented from mucking up the whole site. Is there a simple way to limit users editing rights to a single page? I'm currently using the Members plugin to do other permission-based stuff, so it'd be great if a sol... | Sorry to do this, but I stumbled across the answer in the wordpress forums . It turns out that Role Scoper does this really well. The author of that forum post said it best: To enable a user to edit one particular page, but not anything else: Give them a WordPress role of Subscriber Manage > Pages > Edit their page Exp... | Is there a way (plugin?) to restrict a user to being able to edit just one page? | wordpress |
It seems like half the tutorials in the Codex and around the blogosphere use <code> query_posts() </code> and half use <code> WP_Query </code> . What's the deal? | <code> query_posts() </code> is overly simplistic and problematic way to modify main query of a page by replacing it with new instance of the query. It is inefficient (re-runs SQL queries) and will outright fail in some circumstances (especially often when dealing with posts pagination). Any modern WP code should use m... | When should you use WP_Query vs query_posts() vs get_posts()? | wordpress |
i am trying to install plugin tumblrize and got the error Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in D:\Projects\Websites\jiewmeng\wp-content\plugins\tumblrize\tumblrize.php on line 636 Call Stack: 0.0005 332520 1. {main}() D:\Projects\Websites\jiewmeng\wp-admin\plugins.php:0 0.2249 3035904... | Now this one was really really hard to notice bug. I basically brutforced it by cutting/pasting blocks of code. Long story short - line 462 has wrong code opening tag <code> <? </code> instead of <code> <?php </code> . Which causes some kind of cascading tag mismatch, which seems to go unnoticed by any kind of sy... | Problem installing plugin: unexpected T_STRING, expecting T_FUNCTION | wordpress |
What is the use of map_meta_cap filter? This filter is not documented anywhere. I have an unclear idea of what it could be: Used to map the permissions of the user to operations on posts. What exactly is it meant for? If possible please give some sample code example of its right usage. | This filter allows you to extend the <code> map_meta_cap() </code> function . This function is called by <code> WP_User->has_cap() </code> to convert a meta capability to one or more primitive capabilities . For example, you want to know whether the current user should be allowed to edit the current post, the <code>... | What Is The Use Of map_meta_cap Filter? | wordpress |
I want to create a new database user for my WordPress installation. Usually on localhost, i can just use root, but it is good practice to use a user with as little rights as possible. What are those rights? I was wondering if WordPress needed to have installed plugins etc. It may require <code> CREATE </code> & <co... | If your database is set up to deny remote connections (i.e. only applications on the same server can interact with the database) then there's no danger in giving your WordPress user full access. As a matter of fact, most automated installation scripts used by web hosts grant full access to their WordPress user by defau... | What specific database privileges does WordPress need? | wordpress |
I have a widget like this: <code> class test_widget extends WP_Widget{ function test_widget(){ $widget_ops = array('description' => 'test widget'); $this->WP_Widget(false, 'Test', $widget_ops); add_action('init', array(&$this, 'ajax'), 99); // include in jQuery(document).ready() add_action('jquery_init', arra... | The problem is that this only works when the widget is present in a sidebar. If you need some code to run independently from widget, I reason it makes sense to add that code separately from widget class. And I also need it to work when I call this widget with the_widget() function, for eg. inside a page. I don't know h... | Widget Javascript code (ajax) | wordpress |
I am installing on a local machine using <code> localhost </code> . I have a "learning" version of WordPress @ <code> http://localhost/wordpress </code> and I want to create another version of WordPress (@ <code> http://localhost/jiewmeng </code> ) I want to test and maybe move to a real server later. I found that when... | The database connection constants are defined in the wp-config.php file. Whether the 2 wp-config.php files in the jiewmeng directory and the WordPress directory are the same? You need to create 2 different databases and set their constants in the respective wp-config.php files. | How do I install two versions of WordPress on 1 server? | wordpress |
Something which I have never seen covered is the best way to validate that specific form fields are filled out correctly for custom post type meta boxes. I am looking to get expert opinions on how best to validate custom fields for any metaboxes that one might create. My interest are to: ensure field validation takes p... | The easiest way is to add Javascript validation via the jQuery Validate plugin. Here's the most basic walkthrough: Near your add_meta_box call, enqueue the jQuery Validate plugin as well as a JS file for your simple script: <code> add_action('admin_enqueue_scripts', 'add_my_js'); function add_my_js(){ wp_enqueue_script... | Validating Custom Meta Box Values & Required Fields | wordpress |
I have a blog that gets the usual spam, which Akismet is pretty good with. Not good enough for me to turn off moderation just yet. I am wondering is there a way to "whitelist" a list of readers so their comments can skip moderation and just get posted? | In <code> Settings </code> > <code> Discussion </code> Uncheck <code> An administrator must always approve the comment </code> Check <code> Comment author must have a previously approved comment </code> This way comments from people (identified by combination of name, email and site) who have previously approved commen... | Whitelisting Commenters | wordpress |
I'm looking for a method/plugin/hack to auto-insert an outline when I start a new post in Wordpress. I've searched online for ideas as well as the WP Plugin repo with no luck. Essentially, many of my posts have a similar structure, and it would be nice not to have to paste it in each time, but to have it embedded in th... | Hi @KJH : Your question is very similar to this question: <a href="stackexchange-url Creating a Custom Post Type for Inserting Preset Content into Post & Pages? You might find the solution to be what you need; I extended my WP Boilerplate Shortcode plugin to meet the needs of the person asking the question; you mig... | Method/Plugin/Hack to Start a Post with an Writing Outline? | wordpress |
I've been trying to set up a way to write posts in a series on my site. The idea is that each post can belong to a different series in a custom taxonomy. I've gotten just about everything set up the way I want it ... with one exception. Registering the Taxonomy This part is working. I've dropped the following code into... | Hi @EAMann : I cringe anytime I need to do something creative with URLs in WordPress as the URL system is in my opinion by far the most inelegant aspect of WordPress. I always feel like I'm having to fight WordPress to get it to do what I want, and that WordPress is actively fighting me back related to URLs. So with th... | Fixing Pagination with Custom Taxonomy Archive | wordpress |
My site has a blog page at <code> /blog/ </code> , with links to blog posts. A post will have a URL starting at the root of the site, which is a bit jarring. I'd like to have the posts URLs appear as if they are within the blog section of the site. My site currently has a permalink structure like the following: <code> ... | I just tested it (briefly) on local test install and having static page at <code> /page/ </code> and pretty permalinks starting with <code> /page/ </code> doesn't seem to cause any issues. | Changing my permalink structure - will new layout conflict with existing page? | wordpress |
When writing WordPress plugins there is often a need to set up options for which roles on the site have access to certain functionality or content. To do this a plugin dev needs to fetch the list of roles that exist on the site to use in the option. Because custom roles can be created we cannot assume the default roles... | Roles are stored in the global variable <code> $wp_roles </code> . The ideal function is <code> get_editable_roles() </code> from <code> /wp-admin/includes/user.php </code> <code> function get_editable_roles() { global $wp_roles; $all_roles = $wp_roles->roles; $editable_roles = apply_filters('editable_roles', $all_r... | Getting a List of Currently Available Roles on a WordPress Site? | wordpress |
I wish to use the following RSS in my widget, but it seems to not pick it up: http://www.tapuz.co.il/blog/rssBlog.asp?FolderName=TickTack I imagine there is a problem in the feed. So: What is it? And can it be fixed? Thanks. | Maybe you can test with the plugin RSSImport, this has two different parser and more flexibility and also an debug-function for locate problems. The feed ist valid and I think, you must use this with a widget. | Why can't I add this feed to the RSS widget? | wordpress |
i dont really understand why the check if the nonce function exists before running it ... <code> if ( function_exists('wp_nonce_field') ) wp_nonce_field('gmp_nonce_check'); </code> i understand its for backwards compatibility ... Also notice how you are verifying that the <code> wp_nonce_field </code> function exists b... | The answer is that you should not check if wp_nonce_field() exists before using it! The recommendation to perform the check assumes that you want to be compatible with versions of WordPress from before the function existed. If Rarst is right that it was introduced in 2.0.4 then you should NOT be supporting earlier vers... | Why do I need to check if wp_nonce_field() exists before using it | wordpress |
I've read Professional WordPress and it says: <code> esc_html </code> function is used for scrubbing data that contains HTML. This function encodes special characters into their HTML entities <code> esc_attr </code> function is used for escaping HTML attributes <code> esc_url </code> . This function should be used to s... | <code> esc_html </code> and <code> esc_attr </code> are near-identical, the only difference is that output gets passed through differently named filters ( <code> esc_html </code> and <code> attribute_escape </code> respectively). <code> esc_url </code> is more complex and specific, it deals with characters that can't b... | What's the difference between esc_* functions? | wordpress |
i am reading professional wordpress. their code for uninstalling a plugin is <code> //build our query to delete our custom table $sql = "DROP TABLE " . $table_name . ";"; //execute the query deleting the table $wpdb->query($sql); require_once(ABSPATH .’wp-admin/includes/upgrade.php’); dbDelta($sql); </code> my quest... | This is indeed bizarre. I think they first tried it with <code> dbDelta </code> , found it doesn't work with <code> DROP </code> queries, and went with a straight <code> $wpdb </code> query instead. They then just forgot to take out the <code> dbDelta </code> stuff. It appears <code> dbDelta </code> collects creation q... | Plugin uninstall: why run dbDelta after $wpdb-> query($drop_sql) | wordpress |
reading a book about wordpress ... sorry if i ask the too many questions at 1 go but i am new and confused why does the author always not save data in the metadata box when its a revision. just in case its not clear, what i refer to by metadata box is the one added by <code> add_meta_box </code> . <code> //save meta bo... | You omitted how is this function called. I assume it is added to <code> save_post </code> action. This action passes current post id as argument. In case of revision that would be revision id and not parent post id. So, as I see it, there is no reason to save additional data for revision (creating duplicate set of it).... | why shouldn't i save metadata when its a revision | wordpress |
I use thickbox in the WP backend for preview or other content. On own pages in the backend works my script very fine and a can use custom width and height for the thickbox. below my code: <code> <script type="text/javascript"> <!-- var viewportwidth; var viewportheight; if (typeof window.innerWidth != 'undefin... | <code> plugins.php </code> page calls <code> add_thickbox() </code> function that enqueues WP native thickbox script and style. It has this in documentation: If any of the settings need to be changed, this can be done with another js file similar to media-upload.js and theme-preview.js. That file should require array('... | Custom height/width for thickbox in WP Backend | wordpress |
I want to connect <code> wpdb </code> to another database. How do I create the instance and pass it the database name/username/password? Thanks | Yes it's possible. The wpdb object can be used to access any database and query any table. Absolutely no need to be Wordpress related, which is very interesting. The benefit is the ability to use all the wpdb classes and functions like <code> get_results </code> , etc so that there's no need to re-invent the wheel. Her... | Using wpdb to connect to a separate database | wordpress |
I want to backup my WP flies but the FTP is really slow. Is there a better solution ? (assume CRON and SSH in a managed VPS) | (assuming that FTP is slow due to amount of files) I use SSH to remotely give command to compress WP directory in single archive and then fetch that file. On Windows this is relatively easily scriptable with WinSCP ( scripting documentation ). This method greatly speeds up transfer, makes it secure, requires no plugins... | What is a better way to backup files then FTP? | wordpress |
I've got a CMS style setup. The blog part is not on the home page. I'm trying to add certain things to the side-bar according to which template the page is using. That all works fine, except for the blog page, which does not even reveal its template name. <code> echo get_post_meta($post->ID,'_wp_page_template',true)... | You probably want one of the conditional tags . Possibly <code> is_single() </code> , or maybe <code> get_post_type() == 'post' </code> depending on how complex your setup is. | Why does blog page not reveal it's template? | wordpress |
I'm aware that there are posts discussing this issue already (e.g. stackexchange-url ("stackexchange-url but I have a specific set of requirements according to my wordpress site structure, namely: 6 pages A small number of posts (~ 3 at launch, maybe 1 new one per month) I'd like to include the post name in the URL (fo... | Hi * @Bobby Jack :* You'll have absolutely zero problem given your number of pages and posts. If you were looking at 5000, 10k, 25k pages or more, then start to worry. And the real problem is with categories as the URL base in the current implementation of WordPress' URL routing (which I hope to see changed in v3.2 or ... | Minimal custom permalink structure | wordpress |
I'm just getting my feet wet with templates and have a few questions. First, Ideally, my templates use the same structure as my main theme, however, they simply use a different stylesheet and images. Currently, the way I allow changing the look of the site is with stylesheet switching. I simply have a folder under my m... | Sure it's possible. The quick way would be to add a custom field to the postmeta (in the "Custom Fields" area of the Edit Post/Edit Page page) and in your theme get the value using get_post_meta() . The slightly-less-quick way would be to add a wrapper to this Custom Field value by putting your theme selector in a post... | How do you apply multiple skins to a site via the "templates" selector using stylesheet switching? | wordpress |
I want to add a field to the general settings page, but I can not save the field because I can't find a hook for the pages save. Any ideas? | You just need to <code> register_setting() </code> on your setting and it will be saved automatically. See the Settings API for more info. Here's a complete example: <code> function spw_cb() { if( !($value = get_option('sprockets_per_widget')) ) { $value = 7; } ?> <input type="text" size="3" name="sprockets_per_w... | Is there a hook attached to general settings save? | wordpress |
On my CMS-style setup, I have the standard search box which searches everything. However, on my blog page, I would like to also have another search box which searches just the blog... is this possible, and how would I go about it? EDIT I used this code within a text widget which goes on my blog page: <code> <form id... | Hi @cannyboy : There's a plugin called Search Unleashed that gives lots of different functionality. One of my clients was using it and I was impressed with the control it gave. Not 100% sure it will give you what you need but it's worth checking out. If your blog only has post_types of "post" and you don't use them for... | Searching Only Blog Posts From a WordPress Site's Main Posts Page? | wordpress |
I have a website I am starting to build on Wordpress, but I want a placeholder theme to put up while I develop the theme. I had some links to some good "Coming Soon" themes for 2.X, but I lost them. Any good "Coming Soon" themes for Wordpress 3.0? I would prefer it to have a place for the visitors to sign up for update... | @Martin There are a few "Coming Soon" themes available on The WordPress.org theme repository. One of them is Ready to Launch . My recommendation is to use one of the "Coming Soon" plugins instead. Why Use a Plugin? The advantage to using a plugin is that it allows you to work on the site while the public sees the comin... | Are there any 'Coming Soon' themes for Wordpress 3.0? | wordpress |
I would like to keep my main theme as the active theme, but allow users to select a slightly different layout via the "Page/Post Attributes" panel. Ideally, I'd like to store this layout under my main theme's "styles" directory, in its own folder. MyTheme > styles > My-special-Layout > style.css So that in the "Page At... | You're not doing child themes right. A child theme is a separate theme altogether that everyone must use, but relies on another theme for all template parts it doesn't provide. What you want is templates: http://codex.wordpress.org/Theme_Development#Defining_Custom_Templates Basically, just create a new theme file in t... | Adding a Template to the Page Attributes Panel for both Posts and Pages? | wordpress |
I've got a CMS-style wordpress setup where the homepage is not the main blog posts page. However, I would like to display the first paragraph of the latest blog post on the homepage, with a link to the post. How would I do that? I'd also like to display, above this excerpt, the first image within the post, but I'm gues... | To show the excerpt from the latest post you can use query_posts. Example Query Posts Showing the Latest Post with the Featured Image: <code> <?php query_posts('showposts=1'); ?> <?php while (have_posts()) : the_post(); ?> <h3 class="home link"><a href="<?php the_permalink(); ?>"><?php ... | how to display an excerpt of the latest post on the homepage? | wordpress |
I don't want to edit core files in order to change the page where a user enters new posts, so is there a way to do it within a theme, perhaps within functions.php ..? Specifically, I'm trying to change the wording of the 'Set featured image' text to something like 'Set featured image - 50 pixels by 50 pixels' | You can use the filter <code> admin_post_thumbnail_html </code> : <code> function custom_admin_post_thumbnail_html( $content ) { return $content = str_replace( __( 'Set featured image' ), __( 'Set featured image - 50 pixels by 50 pixels' ), $content ); } add_filter( 'admin_post_thumbnail_html', 'custom_admin_post_thumb... | How to change the wording in wp-admin back-end? | wordpress |
As part of my efforts to speed up my themes for my clients I am delivering my CSS via a dynamic PHP file. At the end of the called for example <code> my_theme_css.php </code> : This allows me to add Expiry headers to my CSS and JavaScript like so: <code> <?php header("Expires: Thu, 31 Dec 2020 20:00:00 GMT"); header... | Hi @Ash G: I didn't follow 100% where you were specifically having problems so I'm not sure I really can answer your issues point-by-point but I can explain how to do this from ground up . And unless what you are doing is a good bit more involved then you mentioned it's a little bit more work than I think you were anti... | Generating CSS Files Dynamically Using PHP Scripts? | wordpress |
I'm using add_settings_field to add some more details to a settings menu, but not sure how I save the settings, or call them back in my theme. Here is the code thus far <code> add_action('admin_init','vimeo_setup'); function vimeo_setup(){ add_settings_field('vimeo_id','Vimeo ID','display_vimeo','general'); } function ... | Documentation for add_settings_field() Says following: You MUST register any options used by this function with register_setting() or they won't be saved and updated automatically. | use add_settings_field properly? | wordpress |
Why? Sometimes an easy fix to altering the behavior of WordPress itself or a plugin could be to alter the files of the plugin or WordPress directly. When coming up with such an idea, the usual response is: Don't hack core. Why is it generally a bad idea to change core files? Consider? Sometimes, however, things that ca... | If you must hack core, consider doing so in a way that makes it extensible for others. Add an Action Hook Nine times out of ten, you could do what it is you wanted if only there was an extra <code> do_action </code> call in a specific file. In that case, add the action, document it, and submit a patch via Trac . If the... | Modifying WordPress core files | wordpress |
I am having a strange issue with the built in wordpress image editor. I have no problem uploading files or preforming any other media functions. The only thing I seem to be unable to do is utilize the image "edit" capabilities (the area where you can crop, resize, rotate...) When I click on "edit" for an image I see th... | I have actually managed to resolve my own problem. For anyone else that might ever read this the problem which caused this was that my <code> functions.php </code> file had a closing <code> ?> </code> at the very end. For whatever reason this is what cause the issue and by removing this last line it was working agai... | Wordpress Image Editor not working - conflict? | wordpress |
Does anyone happen to know how I can automatically turn: http://www.domain-name.com/wp-content/themes/theme-name/css/stylesheeet.css into http://www.domain-name.com/css/stylesheet.css Naturally I could just create the applicable folder within the root of the website, place the files there and just reference them but th... | Offhand I think you'd need two things: First, a rewrite rule in your .htaccess file like so: <code> RewriteEngine On RewriteBase / RewriteRule ^css/(.*) /wp-content/themes/theme-name/css/$1 [L] RewriteRule ^js/(.*) /wp-content/themes/theme-name/js/$1 [L] </code> Second, add a filter to your theme's functions.php like s... | Changing the visible url path to css & js files | wordpress |
I have a website for which we are trying to be discreet about the fact that we are using WordPress. What steps can we take to make it less obvious? | The biggest WordPress giveaways are between the <code> <head> </head> </code> tags. Example WordPress head content output by The Twentyten Theme and how to remove: <code> <link rel="profile" href="http://gmpg.org/xfn/11" /> </code> Remove directly from header.php <code> <link rel="stylesheet" type=... | Steps to Take to Hide the Fact a Site is Using WordPress? | wordpress |
Let's say we create an IMDB like website. So (for example) we can have two types of custom post types: movies actors We would like to see in each movie page all of it's actors. And in each actors page all of the movies he played in. Can this cross linking be done using custom post types? If not, is it expected to be po... | Checkout scribu's post2post plugin , it should fill your needs. | Linking between custom post types as if they where taxonomies? | wordpress |
I've had a few non-technical clients have a tough time with WordPress' admin UI. One of them asked me today if there were any books that could help someone like him - someone who is only concerned with writing content. All of the WordPress books I've seen are either targeted toward developers, or have a lot of technica... | It's not a book but I wrote a "25 Steps to Understand WordPress and it's Terms" about a month ago in response to a question on the LinkedIn WordPress group and maybe copying it here will help? (Maybe I could every take these and turn them into a book for managers complete with screenshots; what do you think?) 25 Steps ... | Recommended Books on WordPress for Management and non-Developers? | wordpress |
A client asked for a blog that will have localized content (i.e. en.blogname.com for English content, fr.blogname.com for French content, etc). Being new to building such a blog, we recently discovered WPML and qTranslate, which look perfect for our needs. Do you have any best / recommended practices for setting up a m... | The best way is without plugin - i set WP3.0 with multisite; the first blog is a dummy to rewrite the uesers to right blog with his language, a small script in the theme to rewirte ro the right language; i see in the browser-language of the users and rewrite; the second is the default blog, the third blog is another bl... | Best practices for localizing WordPress content? | wordpress |
The standard search for Wordpress works, but doesn't seem too clever. If I search for 'tomato' and I have a page whose title is 'Tomato' I would expect that to come first in the results. However the results seem to be ordered by date published. So if a page/post mentions 'tomato' somewhere in the text, it will be first... | You can replace the default Wordpress search with something more useful. As you have pointed out, the build-in search is very limited. So you're not the first one with this problem. I suggest the following two plugins: Search API (Wordpress Plugin) WordPress Sphinx Search Plugin (Wordpress Plugin) The last one allows t... | How to make Wordpress search prioritise page titles? | wordpress |
Wordpress has <code> wp_enqueue_script() </code> but not a <code> wp_dequeue_script() </code> function, so what would be the best way to dequeue a script? I'm using LAB.js to load all of my scripts rather than enqueueing them server side, so I don't want plugins running around adding jQuery 10 times when I'm already lo... | There is a <code> dequeue </code> method available ... I'm just not sure why it isn't wrapped in a <code> wp_dequeue_script() </code> method. (I might create a ticket for this issue, actually) But yes, using <code> wp_deregister_script </code> will accomplish what you're trying to do. Just remember, if you ever do want... | How to dequeue a script? | wordpress |
I've created a Contact Us page (my-site.com/contact-us/) using contact-form-7 which works fine on my local WordPress install. However, when I try the same form on the online version of the site, it simply hangs. I checked the http headers using Fiddler and saw that the url being used by the ajax submit is /contact-us/#... | I've had this problem before. There's an easy way and a hard way to fix it. The easy solution: use a Linux server. The hard solution: write your own contact form. IIS 6 doesn't play nice with anything WordPress uses or does. It works on XAMPP because that's a LAMP stack running PHP, MySQL, Apache, and (usually, for Win... | Contact Form 7 form is working on local wordpress install but fails on production server | wordpress |
I'm doing a custom query using WP_query to get posts from a specific category, but for some reason navigation links for the list don't appear. Is there a way to get the newer/older links to show up and work using a custom WP_query? This is what I'm doing: <code> <?php $mainList_query = new WP_Query('cat=4,352,731,75... | try adding '&paged='.$paged to your query string <code> <?php $mainList_query = new WP_Query('cat=4,352,731,754,49,44,54,17&showposts=200&order=DESC&paged='.$paged); ?> </code> | WP_Query older new links navigation? | wordpress |
I have an issue with the new custom menu in WP3. Suddenly the nesting of categories stopped working and even though it's possible to nest them in the UI, when I press Save, then they all go back flat. Any chance someone has experienced this and know a way to fix it? Thanks. | First, try disabling all of your plugins . If that fixes it, re-enable them one by one until you find the culprit. | Unable to nest categories in menu | wordpress |
I'm seeking to customize my categories listing (archive.php) so that it shows a thumbnail image of the first image attached to each post However, apparently the archive.php file is one of those that does not natively support the attachment object. For example, the code below will do most of what I want (though if no at... | You could use the WordPress function get_children. Although I don't think it makes a difference, performance-wise. <code> <?php while (have_posts()) : the_post(); ?> <?php $attachment = array_values( get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => '... | Showing post thumbnail (attachment) on the archive.php category listing | wordpress |
A number of the sites I'm migrating to a WordPress Multisite instance have embedded videos and iframes within posts. Rather than convert each post to the kosher way of doing video embeds, I'd rather disable the WordPress functionality which strips out the embeds on import. Disabling the stripping when editing a post wa... | http://core.trac.wordpress.org/ticket/14818 | Disabling HTML Filtering When Importing Into WordPress Multisite | wordpress |
In response to stackexchange-url ("Mike Schinkel")'s comment (see below) on stackexchange-url ("my post about how to pre-populate content") (essentially using a content template)... @Scott B I mean why did you support a file on disk rather than an place in the admin? For multiple, have you considering created a "Sales ... | Hi @Scott B : Your question got me thinking about extending your use-case to a plugin I published earlier called WP Boilerplate Shortcode . I know your question isn't about shortcodes but the name is only legacy for your use-case; indeed my extension I just added because of your question will do (almost) exactly what y... | Creating a Custom Post Type for Inserting Preset Content into Post & Pages? | wordpress |
After creating a new WordPress site, how can I edit the default links like "Site Admin" found in the sidebar "meta" section? | I assume you're talking about the "Meta" box you see in the sidebar. These links can't be edited, they're part of the sidebar widget itself. Your safest bet would be to replace the Meta widget with your own Text widget that lists out whatever links you do want displayed. | Editing the Default Links like "Site Admin" in the Sidebar Meta Section? | wordpress |
One of the best blogging practices is that of writing "pillar posts" - featured content that's longer than a typical post and will likely generate a high volume of traffic to your site. Extensive tutorials, comprehensive user guides, and in-depth product reviews mostly fall into this category. They're the 1500-word beh... | As I was reading your post I was envisioning almost exactly what you prescribed at the end: My first inkling would be to develop a custom post type for features like this with its own custom taxonomy. Each "post" would be an individual feature (custom post type) and would be owned by a series (custom taxonomy). Then ea... | Implementing Pillar Posts; Long Posts yet with Some Page-Like Handling? | wordpress |
Here is a question I have spent over 3 hours attempting to solve but each approach I take ends up not working out for me. All I am attempting to do is utilize this opensource ajax calendar script: FullCalendar and have the entries display all posts within a specific post type. For each of the posts within this event po... | Hi @NetConstructor: FullCalendar is a nice find. Looks to me like you'll need to write a shortcode (which I show how to do here): <a href="stackexchange-url Adding an Archive of Posts to the Navigation Menu in WordPress 3.0 And then generate the code to call the FullCalendar within the shortcode . After that you'll nee... | Loading Custom Post Type Events into jQuery-based FullCalendar? | wordpress |
I recently released a plugin, WP Coda Slider, that uses shortcodes to add a jQuery slider to any post or page. I am adding an options page in the next version and I would like to include some CSS options but I don't want the plugin to add the style choices as inline CSS. I want the choices to be dynamically added to th... | Use <code> wp_register_style </code> and <code> wp_enqueue_style </code> to add the stylesheet. DO NOT simply add a stylesheet link to <code> wp_head </code> . Queuing styles allows other plugins or themes to modify the stylesheet if necessary. Your stylesheet can be a .php file: <code> wp_register_style('myStyleSheet'... | How do I add CSS options to my plugin without using inline styles? | wordpress |
What is the difference between the suppress_errors() function and the hide_errors() functionin wpdb class? What is the use of each function? | <code> suppress_errors() </code> hides errors during the database bootstrapping <code> hide_errors() </code> hides SQL errors | What Is The Difference Between suppress_errors() And hide_errors() in $wpdb? | wordpress |
My goal was simple --- to create a custom post type with a custom metabox with a simple drop down list of taxonomy terms instead of utilizing the tags or checkboxes. The reason was to ensure that the editor can only select a single term from the taxonomy list. After trial and error I finally managed to figure out a way... | For anyone who is interested, I answered this question on a different post: stackexchange-url ("stackexchange-url | Custom Metabox with Taxonomy Dropdown - Saving Issue | wordpress |
I am playing around with wordpress and a few plugins. Say I have something called "Shopping Cart" and I delete the page. Then I recreate it, I can't have the old URL back. I get domain.com/shopping-cart-2 and I want the old one back. How can I do this? | You are asking about the slug of a page . To change the URL part (also referred to as "slug") containing the name of your Page, use the "Edit" (or "Change Permalinks" in older WordPress versions) button under the Page title on the Edit screen of the particular Page, accessible from Pages tab of WordPress Administration... | Editing the Number at the end of Page URLs / Editing Page Slugs | wordpress |
Hay, does anyone know a way to display the featured image url within the RSS feed? | <code> function add_featured_image_url($output) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $output = wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) ) . ' ' . $output; } return $output; } add_filter('the_excerpt_rss', 'add_featured_image_url'); add_filter('the_content_feed', 'add_featured_i... | display featured image in RSS feed | wordpress |
Posts may be published either immediately or in the future. Suppose a plug-in wants to do something at the moment when the post becomes published and visible on the blog (I don't mean when the post is saved as published in the admin panel with whatever date). Is there a hook like "post_visible" or something similar. | Every time a post changes status, <code> wp_transition_post_status </code> function will be called. This triggers the actions <code> ${old_status}_to_${new_status} </code> and <code> ${new_status}_${post->post_type} </code> , so for example <code> publish_post </code> will be triggered here. A post with a date in th... | Any Hook Called When Post Becomes Published? | wordpress |
Is there a way to resize images to the actual size they will be shown in the post? I have users that import a large image and then resize it in the visual editor. This is easy, since they can just drag the image until it is the size they want, without first opening an image editor, resizing the image, saving it, and up... | I created two plugins that together should solve my needs. They are currently in an early alpha stage, and all comments are welcome. The base plugin is an On-Demand Resizer . This plugins monitors requests for non-existing files in the uploads dir, and creates images of the requested size if needed. For example, <code>... | Resizing images to the actual size used in the editor? | wordpress |
Okay I know the title is pretty vague but I didn't know how to articulate it. Basically, I want a plugin that sends email notifications to users who opted-in only if they specifically got replied to. WordPress has its built-in functionality for comment threading/replying, so instead of bombarding the user with emails e... | I figured it out. Each comment row in the <code> wp_comments </code> table has a field named <code> comment_parent </code> which stores the <code> comment_ID </code> of the parent comment. If the comment has no parent, then the default is 0. So I guess on each comment post I would check the database for the posted comm... | Hook to See if Comment got a Reply? | wordpress |
Post and page guids include the full absolute URL of my site (e.g. http://www.example.com/wordpress/?p=1). This causes a problem if the domain, or wordpress path changes, or if I'm viewing the site via its IP address rather its domain, etc. Problem 1: there are some internal links on my site that are using the guid. I'... | 1) The GUID is exactly that -- a GUID. It's used to uniquely identify the post. If you need to link to a post, then use <code> get_permalink( $post_ID ) </code> ( <code> $post_ID </code> is optional) (link: get_permalink ). 2) Not without a plugin, no. There's talk of using an image shortcode for 3.1 though, or maybe 3... | Problem with guids and absolute links | wordpress |
I want a multi site WordPress website to make a wedding website in which the users can make their accounts for their websites, how will this actually be done in WordPress? | As you probably already know. Since WordPress 3.0 Multi-Site functionality has been included by default as the WordPress MU project has been merged into the WordPress 3.0 core. In regards to the initial setup, it might take a little bit of work if you are not familiar with php coding but what I can tell you is that onc... | Setting up a Multisite WordPress for Wedding Websites? | wordpress |
I've created a simple menu in wp-admin> appearance> menus called main-nav. Works fine. However, I'd like to add a custom element to the end of the menu... a search box like the search box in the apple.com menu bar. I can't work out where the menus get constructed in code. where can I can add this... any ideas? (I'm usi... | Try this: <code> add_filter('wp_nav_menu_items','search_box_function'); function search_box_function { search box code goes here } </code> For reference, check out Bill Erickson's excellent tutorial on accomplishing this with the Genesis framework. | Where do custom menus get constructed? | wordpress |
I want users to be able to upload photos using <code> add_cap('upload_files') </code> but in their profile page, the Media Library shows every image that's been uploaded. How can I filter that so that they can only view the images they uploaded? Here's my solution for the moment… I'm doing a simple WP query, then a Loo... | You could always filter the media list using a <code> pre_get_posts </code> filter that first determines the page, and the capabilities of the user, and sets the author parameter when certain conditions are met.. Example <code> add_action('pre_get_posts','users_own_attachments'); function users_own_attachments( $wp_que... | Restricting Users to View Only Media Library Items They Have Uploaded? | wordpress |
With the new wp_nav_menu system, it is possible to add a category as a menu item, so in my example I have a 'news' category, which is a submenu item of 'About'. <code> About (page) --news (category) --history (page) --contact us (page) </code> The menu highlighting CSS picks up from current-menu-parent and current-menu... | Currently this is not possible if a page menu item is a parent to a category menu item. In your example if About was a category and News was child category then the About (category) menu item would be assigned: current-post-ancestor current-menu-parent current-post-parent | How do I get my wp_nav_menu single category page to highlight the parent? | wordpress |
In a previous question I needed to set a future dated post (custom post type) as published on save instead of scheduling it. On the date it's 'scheduled' for I'd like to set it as a draft again. I've been trying to hook into init and wrap it in an if checking for post type. I figured it would compare to server time and... | Your query isn't giving you a post ID, it's giving you an entire post. The <code> SELECT * </code> returns all columns, <code> ID </code> , <code> post_status </code> , etc. So setting <code> $my_post['ID'] = $a </code> doesn't do anything for you in this case. Try using: <code> $my_post['id'] = $a->ID; </code> inst... | How to Set Post Status to Draft if older than today | wordpress |
What I mean by series is like writing a book. A reader should be able to click on the book and then proceed to read the chapters. I can probably mimic it by creating a page and then linking it to a series of posts. I am looking for a more natural way to present and navigate. | I've used this plugin for a client site I did a while back...it might do what you need... Organize Series plugin | Is there a way I can write a series in WordPress? | wordpress |
I have some query that brings around 50+ posts (I know it's not ideal but had to do that to build something the client asked..) and a set of loops to order them in a certain way and it looks like that this sequence is delaying parts of the rendering of the page. I'd like to cache in a transient this entire block of ren... | Transients API documentation formulates suggested usage as: long/expensive database queries or complex processed data Your case seems like a perfect fit for this description. On technical side you will need to concatenate your output into variable and put into transient, instead of displaying it. | Is it possible to save an entire piece of rendered HTML in a transient? | wordpress |
I've been browsing around a bit, but haven't been able to find any plugins for changing the default theme editor. Currently it's a text area with no syntax highlighting. I'd like something that at least gives syntax highlighting. There are all sorts of plugins for the post editor, but I've yet to find one for the theme... | @Jack Slingerland, There are a few plugins that do this but the only one I that has been updated recently is Power Code Editor . At a recent WordCamp Matt mentioned that a new built in theme editor with a trash bin and revisions is on the road map but I have not heard it mentioned in any of the dev meetings. | Are there any Worpdress plugins to change the theme editor? | wordpress |
I know that it is possible to restrict (or extend) the memory usage of the entire WP site using: <code> define('WP_MEMORY_LIMIT', '64M') </code> Is it possible to do the same for only one plugin that the website uses ? | No and even if you could, if the plugin ran out of available memory then the entire page generation would stop due to the fatal error. You're better off fixing the plugin itself to not use as much memory or to just further increase the total memory allocated to WordPress/PHP. | Can you limit the memory usage of a particular plugin? | wordpress |
Hay, I've installed WordPress 3 on my server, and duplicated the stock theme and made some amends to it. However, when i add a post, i don't see an option to add a 'featured image'. Has this featured been removed? How do i reactivate it? Thanks | Your theme must indicate that it supports post thumbnails : <code> if ( function_exists('add_theme_support') ) { add_theme_support('post-thumbnails'); // If not the standard size, state your size too set_post_thumbnail_size( 200, 200, false ); } </code> | No option to add a 'featured image' in my wordpress installation | wordpress |
I've built a simple sales page theme and would like to enhance it a bit by allowing the input of default content (including headers, bullet points, testimonial blockquotes and the ubiquitous "add to cart" button). What are the options for adding html snippets to content pages and/or posts? Ideally, when I click "Add Ne... | @Scott B, I just read a post on Justin Tadlocks Blog regarding this same issue. The Solution Use the <code> default_content </code> filter hook and it to the themes function.php file. Example: <code> <?php add_filter( 'default_content', 'my_editor_content' ); function my_editor_content( $content ) { $content = "This... | Pre-populating the Page/Post Content Editor with HTML Snippets? | wordpress |
Is there anyway to create a special feed in WordPress that is on a delay that I can distribute to some of our content partners? I found some tutorials on how to delay your feed but it uses the conditional statement <code> is_feed </code> and I don't want to apply this to all feeds, just one particular feed. Any advice?... | This tutorial explains how to create a custom feed: http://yoast.com/custom-rss-feeds-wordpress/ . Put the add_filter (from the wpengineer tutorial) before the query_post, and a remove_filter('posts_where', 'publish_later_on_feed'); after it. | Delaying One RSS Feed in WordPress but Not the Others? | wordpress |
I have a feeling this is a bug. When you create a new custom post type it does not seem possible to modify the first submenu item text. I am referring to the link which allows you to view the post list. For what I can tell it just seems to be duplicating the name name of the main post type menu which was created. Does ... | Hi @NetConstructor.com : I think you already asked about this and I gave you an answer that would address this question too: Changing the Order of Admin Menu Sections? In that answer I gave you a library you can use to make interacting with the admin menus super easy. Here's what you'd have to do to achieve your stated... | Renaming Menu Item within Admin Menu Section for a Custom Post Type? | wordpress |
I am looking to achieve something which I figured would be fairly simple to accomplish but it seems there are no real examples available to achieve my needs. Essentially I have a custom post type of "Articles" for this custom post type I have a new taxonomy which I have registered which was created so that source publi... | Hi @NetConstructor.com : I wrote this last month for somebody and it may address what you are looking for. It is an example you would modify, not a complete ready-to-use solution: <code> <?php /* * Example code showing how to hook WordPress to add fields to the taxonomny term edit screen. * * This example is meant t... | Adding Custom Field to Taxonomy Input :Panel | wordpress |
I have seen code in an answer to this stackexchange-url ("question"), how to remove the promotional back link to WordPress.org in my theme. I have added this to my theme's CSS but there is no change. Am I missing see some thing? Apologies for my Ignorance . Code I have used: <code> #site-generator { display: none; } </... | Here is the code I always use whenever I setup a new wordpress blog: CUSTOM ADMIN FOOTER TEXT <code> // CUSTOMIZE ADMIN FOOTER TEXT function custom_admin_footer() { echo '<a href="http://www.netconstructor.com/">Website Design by NetConstructor, Inc.</a>'; } add_filter('admin_footer_text', 'custom_admin_foo... | How do I white label my self-hosted site created by wordpress? | wordpress |
The more customization I make to WordPress the more I start thinking about if I should be organizing this file or splitting it up. More specifically, if I have a bunch of custom functions which only apply to the admin area and others which just apply to my public website is there any reason to possibly include all admi... | If you are getting to the point where the code in your theme's <code> functions.php </code> is starting to overwhelm you I would definitely say you are ready to consider splitting it up into multiple files. I tend to do that almost by second nature at this point. Use Include Files in your Theme's <code> functions.php <... | Organizing Code in your WordPress Theme's functions.php File? | wordpress |
I have just installed the Plugin " W3 Total Cache " .I have enabled permalinks too. Then it is showing a message Browser Cache feature is not operational. Your .htaccess rules could not be modified. Please verify /home/..../public_html/..../.htaccess has the following rules: SO I have pasted the code it has shown on wi... | From my experience with W3 Total Cache this error is triggered when the plugin cannot write to the .htaccess file. It also suggests chmod 777 to the file and has a button that says "try-again" that you can click after changing the permissions to .htaccess. I would suggest chmod 777 to .htaccess, click try again, then c... | Error Message from W3 Total Cache when .htaccess Rules Cannot Be Modified? | wordpress |
I just added Contact Form 7 to my site . I'm using the default configuration (didn't change any setting). The mails are classified as spam in my Gmail inbox. Is there any way of making them go directly to the inbox? | @janoChen, The problem could be that your email server is not using Domain Keys or a valid spf record DomainKeys is an e-mail authentication system that allows for incoming mail to be checked against the server it was sent from to verify that the mail has not been modified. This ensures that messages are actually comin... | Contact Form 7 Plugin send emails to my Gmail as spam | wordpress |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.