0
votes
1answer
269 views

Post X of Y in single.php / sidebar.php

Is there a way of putting "Post X of Y" into my sidebar? I think I can only show it when it is a single blog post (something like checking if the content is_single) but I want to be able to see which ...
0
votes
2answers
453 views

Get fields from metabox array

In my functions I'm registering multiple metaboxes with custom fields. A single metabox array for instance, looks like this: In functions.php $meta_boxes[] = array( 'id' => 'general_info', ...
0
votes
1answer
295 views

Taxonomies not showing in WP Dashboard Right Now widget

For some time I've been using this code snippet adding both custom post types and custom taxonomies to the WP Dashboard Right Now widget: function dashboard_right_now_content_table_end() { $args ...
0
votes
1answer
1k views

Display thumbnail from custom field

I have a custom field called picture. On the media settings page I've set thumbnail size to 100x100. If upload an image called gecko.jpg, Wordpress automatically resizes it and generates ...
2
votes
1answer
833 views

How can I make the “Preview Post” button save and preview in the same window?

When you choose "Preview", which is actually a link, <a class="preview button" href="?p=52&amp;preview=true" id="post-preview" tabindex="4">Preview</a> the post is saved and the ...
2
votes
1answer
161 views

How can I automatically attach posts to a map?

I'd like to display a Google map of places relating to posts (eg, places I've visited). Is there a plugin or method available that will allow me to have a Google map on a page and when creating a ...
0
votes
2answers
1k views

404 for index.php

I've recently switched from linux to windows hosting on IIS7. I have permalinks working fine, but for some reason when I try to view the site index (index.php) I get an internal wordpress 404. I can ...
0
votes
1answer
3k views

How do I create a meta box for dates?

I am creating a custom events page and I want to know how to create a custom meta box to save event dates. I don't want it to be a regular meta box because I will be using this to make a custom search ...
1
vote
1answer
367 views

Automated posting to wordpress from commandline or XMLRPC API on Dreamhost

I operate several wordpress sites on Dreamhost. I have some automated scripts that I want to be able to automatically post to the wordpress blogs. I can do this via a command-line tool or via the ...
0
votes
1answer
206 views

Custom Permalinks for Posts only

I'm using a page as my blog archive, ie http://mysite.com/blog I'd like to list the posts under that url: http://mysite.com/blog/untitled/hello-world/ I've added Category base "blog" and now my ...
0
votes
1answer
1k views

Can't view post, goes to 404 page. Please help

I'm on a fresh install of WP and I just made a couple test posts. However, when I click on the post to view the 'single' page, it shows a 404. Furthermore, from the dashboard, when I go to the edit ...
1
vote
1answer
77 views

Wordpress Access allowed to fewer pages till user logs in

Is it possible in wordpress,by editing theme functions.php, to stop user access for all pages except Home, about-us, contact-us until a user is logged in to the system? All buddypress and wordpress ...
2
votes
1answer
783 views

Search stores (custom postcode field) within 5, 10, 15 miles of user inputted postcode.. Code modification

I have been searching for a location search solution for wordpress.. The best semi-solution I have found is http://mondaybynoon.com/2010/02/22/store-locator-wordpress-pods The problem being is that I ...
0
votes
2answers
100 views

How do I profit from a Plugin?

While I remain committed to the open source foundation of WordPress, I do prefer to make a living plying my trade as a developer of quality software that fulfils a need of people willing to pay for ...
0
votes
2answers
907 views

Using a pre_get_posts filter to search for multiple strings on all meta values

Using a pre_get_posts filter to search a given string on all meta_values: $query->set('meta_value', 'first string'); debug: AND ( (CAST(wp_postmeta.meta_value AS CHAR) = 'first string') ) ...
0
votes
2answers
1k views

Why is home page content not displaying with this rewrite rule?

I am trying to pass a variable from a URL to PHP using mod_rewrite while maintaining standard WordPress functionality. Here's my mod_rewrite rules: RewriteEngine On RewriteBase / RewriteRule ...
1
vote
1answer
182 views

Hard-coding custom menu elements for menu manager

I realize that one can add custom links through the menu manager but is there a way to manually create such components through the functions.php file? More specifically, one example here relates to a ...
1
vote
1answer
386 views

Adding all sub-pages to the menu manager

Is there some simple way which would allow one to add a page to a menu (through the menu manager interface) and be able to define if the inclusion of this item should automatically add all subpages up ...
0
votes
1answer
65 views

Custom menu breaks down

This code : http://icodesnip.com/snippet/php/wordpress-show-custom-types-in-categories .. achieves its purpose which is to make category page work with a custom post type, but in my case it also ...
0
votes
1answer
30 views

Minimalistic schedular

I've been looking at schedulers and appointment maker plugins the last few days, but so far haven't found anything suitable. So thought I'd ask, Basically I just want to be able to list a loads of ...
0
votes
1answer
2k views

Advanced Custom Fields Plugin - not displaying images

I installed the plugin and assigned it to the relevant page but the problem is that the custom fields display 'no image selected' after I have uploaded them and do not appear on the relevant page. Any ...
0
votes
1answer
1k views

Dynamic filtering of posts with custom taxonomies

I am currently trying to make a business directory where the users can filter the results by: Type of service County I am using a custom post type for the business directory, and I have created 2 ...
1
vote
1answer
123 views

Rating system and changing the loop

Alright, so I want to see who can help me implement this idea I have. I just want one single Icon next to a post. If you click it, then you "Heart" it or "Love it". The post has a counter to see how ...
0
votes
2answers
1k views

Value of Query string [closed]

How can i get the total value from the following URL ...
1
vote
0answers
356 views

Changing the pagination URL format [closed]

Currently when I use the next_posts_link and previous_posts_link functions I get a URL returned such as /posts/page/2. However, is it possible to make Wordpress work with a pagination URL format such ...
3
votes
4answers
3k views

Re Order Editor to be after meta box [duplicate]

I want to reorder stuff in a custom post. I got the meta box and editor working together, but currently the editor is above the meta box and I need it to be the other way around. This is the code ...
0
votes
2answers
880 views

Wordpress single.php different layouts projects / posts

i'm new in Wordpress and I'm currently building my personal website where my works will be published and have a blog too. For the portfolio layout I've looked up this tutorial: ...
4
votes
4answers
5k views

How to count nav menu items?

I'm creating a custom walker for my nav menu. The goal is to split the menu in to columns like so: I can easily determine where I am in the list by looking at $item->menu_order. What I don't ...
0
votes
2answers
926 views

Add mime types with plugin

I've tried a few plugins to add mime types including the PJW Mime Config plugin. And adding this to a themes functions.php file would work fine, too, for a non-WPMS site. But I need these to be ...
-1
votes
1answer
121 views

Jquery UI implementation [closed]

I have to register the jQuery UI in function file. I don't want it directly in header.php function my_jquery_ui() { // register your script location, dependencies and version ...
0
votes
1answer
54 views

Image.php Problem - Post Images Not Displaying In It

When I insert an image into a post and link to that image, the link is sending me directly to the file rather than displaying the image via my image.php template. How can I solve this? I haven't ...
2
votes
1answer
446 views

The WordPress Gallery, Grabbing The Link and Images?

I have created a template for gallery named image.php which allows me to create a news website style image gallery that can be embedded in posts. But I need two more things to make this complete. ...
5
votes
1answer
1k views

Forcing nickname as display_name in custom edit profile template

Context I've created a front-end "edit profile" template. When I input a value into the nickname text box only the nickname is updated. The default WordPress forum has a select menu that ...
0
votes
1answer
846 views

wpdb->get_var - count author posts, meta value

In an author.php template, i count the author post in a custom post type with $wpdb->get_var, $post_author = $curauth->ID; //author id $count = $wpdb->get_var( "SELECT COUNT(*) FROM ...
0
votes
1answer
1k views

what could cause get_stylesheet_directory_uri() to fail?

On my new worpress install, I have code that reads <img src="<?php get_stylesheet_directory_uri(); ?>/images/logo.jpg" /> This code worked, untill I started using a subdomain (went ...
2
votes
2answers
202 views

The effect of spam comments on hosting resource usage (CPU)

One of my WP sites is using a lot of CPU, and I am wondering if this is caused because of the high number of spam comments it is getting. Can that be the case? Is there an easy way of checking that? ...
0
votes
1answer
909 views

pagination in author.php template returns 404 error

Hi to the community!!! I need some help with pagination in author.php template. I have pagination working in all my loops except in authors.php that i get a 404 error. In my settings/reading i have ...
0
votes
1answer
589 views

Display upcoming events in the next 30 days by querying posts with timestamp in custom meta

I have a custom post type "event" which stores a custom meta as a timestamp ($event_date). The date is always in a dd-mm-yyyy format, so I can generate a unix timestamp from this key. The timestamp ...
-3
votes
3answers
753 views

Post count by meta_key meta_value [closed]

I have 100 posts to the ( states meta_key ), and different meta_value (AK,AR,CA,FL,HW,MN,SC,TX,MN,NJ). I want to show the post count on my site sidebar for posts AK-11 posts,AR-9 posts....
0
votes
1answer
619 views

automated import from blogger

I am looking for a way to make the Blogger importer tool run automatically to update a blog content category automatically. I appreciate that Google does not like duplicate content, but the site I am ...
0
votes
1answer
107 views

CPT Metabox with email notification

I have a custom post type just for contacts, I want to create a metabox with the contacts birthday and have it notify the site admin when it comes up (Or a day/week/month before the date if possible). ...
0
votes
2answers
836 views

How to save user meta on custom admin page

I have removed the edit profile page from WP admin as I don't want users to be able to edit their details as this is a closed intranet and their details are fed from AD. However I do want them to be ...
0
votes
2answers
194 views

I've got a function that auto creates taxonomy terms - Can it auto delete them as well?

I've got this inside my functions.php file. function add_product_category_automatically($post_ID) { global $wpdb; if(!has_term('','product_relation',$post_ID)){ $cat = ...
0
votes
2answers
920 views

URL rewriting for WordPress Network (Multisite) subsite

We have an install of WordPress Network (Multisite) that has multiple blogs running under the url blogs.exampleurl.com where each subsite is blogs.exampleurl.com/site1 /site2 etc... We have a user ...
0
votes
1answer
167 views

disable defaault wordpress comments from a plugin

I am modifying the facebook comments plugin to my purposes. What I'd like to do is have it remove Wordpress native comments automatically if it is enabled- in fact what I'd really like it to do is use ...
3
votes
10answers
1k views

Website is slow: advice on optimization

This WordPress-based website i just released is dead slow. I've optimised my theme a lot and get a pagespeed of 91/100 but the first time to byte is the culprit: it takes 8 up to 20 seconds. I've ...
0
votes
1answer
257 views

making a plugin that moves other plugins wp_head actions to wp_footer

I am grappling with implimenting jQm on wordpress and have hit the obstacle that most plugins dont work on jQm ajax loaded pages. However, taking the example of the sharethis plugin, I have found ...
1
vote
1answer
2k views

Default Gallery Edit/Template Editable?

I quite like the default WordPress Gallery, but i dont like how it plonks the images as thumbnails, with a link to the larger image. Is there anyway to make it display the images not in a thumbnail ...
0
votes
1answer
1k views

Store in media library image uploaded from url

Is there a plugin that when upload from url/web, it will also give an option to store the images locally and/or into the media library?
1
vote
1answer
2k views

Gel all image from certain post type

I've found similar questions here, however I can't modify the answers to get images only from a certain post type - as the post type in those examples are "attachment" and not the name of a custom ...

15 30 50 per page