0
votes
1answer
285 views

Wordpress not displaying themes in the wp-content/themes folder

I'll do my best to explain this but its weird to say the least. So the two default themes (twenty ten and twenty eleven) appear under the Appearance>Themes tab in the wp admin. However, if I add one ...
0
votes
2answers
126 views

Check IF single OR multiple custom data has been entered

I'm building a single template right now for a custom post type. I'm wondering if there is a way to check if either at least one or multiple of the custom values has been entered so I can display the ...
1
vote
1answer
81 views

How does WordPress determine which multisite the user is on from the URL?

What is the file and line where WordPress determines which multi-site the user is on from the URL? I've been looking through the code all afternoon and can't figure out where it turns ...
0
votes
1answer
35 views

Admin sidebar customization

My new clients wordpress site does not have plugins, appearance or any of the other default items in the admin sidebar. Can anyone tell me how I get those to appear. The site is being run in a ...
0
votes
1answer
845 views

Truncating characters in Advanced Custom Fields works some places but not others?

I'm using the Advanced Custom Field plugin - although I'm not positive that is relevant. Nonetheless, I can't get substr() to work at all using this method: $givchars = 5; $postgiv = ...
0
votes
2answers
260 views

How to update wp_posts with just the returned comment count from wp_comments (SQL GROUP BY)

I am doing a special migration from someone's custom CMS to a WP installation. I successfully got the posts and comments migrated into their respective tables. Now I need to get the comment count ...
1
vote
2answers
105 views

a one-off rewrite rule

I have one page that I need to change the URL for. Currently, the page resides at example.com/departments/human-resources/ (human-resources is a sub-page of /departments/ ) My client wants to ...
6
votes
6answers
8k views

How to Create Editable Blocks of Text for the Homepage?

I'm making a site based on WordPress. It's not going to seem a blog or WP. Just a website. So WP acts like backend where the client can edit the text blocks. Question: How can I put block of text ...
0
votes
2answers
965 views

Must Log In to Visit Site [duplicate]

Possible Duplicate: determining if the user is logged in Please check my site http://247ebookstore.com/sg3/monestatic-igues/ still working on it. If you check the given page you'll see ...
4
votes
2answers
3k views

add_filter and changing output captions of image gallery

I'd like to change only one output of native WP Gallery (in media.php) On Smashing Magazine (link) author advises to change whole gallery_shortcode function. But I wondered if is possible to change ...
1
vote
1answer
367 views

ReWriteRules and WordPress Multi-Sites with Sub Directories

I'm having a diffucult time getting the ReWriteRules and URL structures setup for a Wordpress 3.4.2 (latest version as of this post) blog with multi-site enabled. www.ourdomain.com/ is the homepage ...
1
vote
3answers
365 views

How to re-post an old post?

I am in need of re-posting random posts to the front page of the blog to make them fresh. Is there any hook that could help me achieve it? Thanks.
0
votes
1answer
144 views

Loop posts without any taxonomy

I've grouped my pages by some custom taxonomy. But I need to care about those without any taxonomy set. My code is: $page_groups = get_terms('page_group'); //get all existing page groups foreach ...
2
votes
1answer
104 views

Execute shortcode only in another shortcode

I wonder if it's possible to do a shortcode only in another shortcode. For example I got following code pieces: [heading]some pricing page[/heading] [pricing_box] [heading]Some title[/heading] ...
0
votes
3answers
137 views

How do I add a nested conditional within an echo - to use a default image if there isn't one in the post?

I'm trying to add a conditional that will display a default image if the "image" field isn't populated... here's what I'm trying to work with: $args = array( 'posts_per_page' => 3, ...
0
votes
1answer
128 views

How to downgrade plugin?

I have installed a plugin, but it causes problem with get_the_excerpt() function in my theme. So, I need to downgrade that plugin. How to do that?
0
votes
1answer
382 views

Displaying posts limit: can't get pagination to display [duplicate]

Possible Duplicate: Pagination not working with custom loop I'm creating a custom page for logged in current users to view their posts. I would like to limit the number of displayed post to ...
1
vote
1answer
2k views

Where in WP can I check history or log of updates of plugins etc?

I need to find out what happend at certaint time when some of my admins make some plugin updates etc. So i need to check in admin the log of changes, updates etc. Where can I find that in WP admin?
3
votes
2answers
781 views

Using Offset in Custom Post Type Query

I'm using the following query for a custom post type: <?php $posts = get_posts(array( 'numberposts' => -1, 'offset' => 20, ...
2
votes
1answer
227 views

Numbering Image List in Gallery

While adding images in a post with the gallery shortcode, I want to display an image number as title of the image e.g if there are 3 images in a gallery and displayed as a list, above each image there ...
1
vote
1answer
259 views

Restrict access to the Trash folder in Posts

I want to restrict users from deleting posts permanently. How do I restrict access to the Trash folder in Posts? This is the only page were the users can delete their posts permanently. The only ...
0
votes
1answer
119 views

Get WP_Query query after execution?

It it possible to get the configuration of a the latest called WP_Query? I need to use it for debugging. For example, if i run something like: $the_query = new WP_Query( $args ); ... Could i get ...
0
votes
1answer
302 views

Dynamic wp_enqueue_scripts?

Is it possible to call wp_enqueue_scripts dynamically? For example, I want to use in function.php my own function addThemeJS( true, 'modernizr', THEME_JS_DIR . "/plugins/modernizr.custom.js", ...
4
votes
1answer
322 views

How to set up Wordpress Multisite on multiple domains without plugin?

How to set up Wordpress Multisite, sub-folder setup, on multiple domains without plugin? For expample if I have two domains www.domain-one.com and second www.domain-two.com, i would like to have ...
2
votes
3answers
810 views

Add 32x32 icon to custom post type index page

I've setup an "album" custom post type and want to add an icon on the index page where the RED circle is (see image below; from wptheming.com). Here's my function to replace the icon. The CSS is ...
0
votes
1answer
28 views

Correct way of adding taxonomy to a custom post type

Just something I´ve been wondering for a while: The Codex shows us two ways of attaching a Taxonomy to a Custom Post Type: Using the taxonomies argument in the register_post_type function Using ...
2
votes
2answers
915 views

How to set a custom post type to not show up on the front end

I use a custom post type in one of my sites for image slideshows. I have publicly queryable set to false/off but when Google crawls my site I see 404 errors for the URLs for my slideshows. I thought ...
4
votes
1answer
887 views

Make featured image required

Is it possible to force user to set featured image on some types of posts. For example I've got custom post type mm_photo and I want to show some error message or somehow block user from publishing or ...
0
votes
1answer
468 views

Fatal error: allowed memory size when after using enqueue_script

I an trying to enqueue four script files and keep getting this error: Fatal error: Allowed memory size of 103809024 bytes exhausted ... wp-includes/class.wp-dependencies.php on line 175. I used ...
0
votes
2answers
97 views

Filter and Search

I am working on my site which is a WordPress based site. It is a sweepstakes site well winprizesonline.com is the site which inspired me most. Now I want a dynamic search like that site on my site but ...
3
votes
0answers
634 views

Post Link Filter Help [closed]

I Am probably being a complete tool here but I am trying to change the permalink on my custom post type to a particular category child. The code in essence works but I cannot for the life of me figure ...
1
vote
2answers
53 views

Adding a form at the end of the content

I'm trying to add a little form after each post for a plugin I have to code, but I'm not very familiar with Wordpress. By using add_action with the_content as hook, I was able to add some text to the ...
1
vote
1answer
3k views

Calling widget via function in themes files (hard code)

Finally I finished to write my widget, and now want to call it using function inside themes php files. My widget looks like this: function reg_custom_widget() { ...
1
vote
0answers
396 views

Custom category URL rewriting

Here is the situation: let say I have a page called Press and that page has this url: www.example.com/press-center Now, let say that I have a category Press (slug is press) and subcategory called ...
0
votes
1answer
66 views

Wordpress mu domain mapping

I've asked this question on the plugin support page but can't get an answer :/ Is it possible to use the domain mapping plugin to map domains in Wordpress (multisite) that are mapped to domains with ...
3
votes
3answers
1k views

How to Debug the 'save_post' Action?

Is it possible to validate PHP code? I have a Custom Post Type (Film) with Custom Meta Boxes. Everything is working fine, I can add new Films and details to the Custom Meta Boxes. My problem is ...
0
votes
1answer
71 views

Exclude categories from homepage but not from sidebar

I would like to exclude categories from my homepage, but I want them to still display in the sidebar shown on the homepage, how can I do that? At the moment my code excludes from both the content ...
0
votes
1answer
132 views

Custom search with meta fields

I made a custom search form with text fields and dropdown. Now, my form is in its own template file - sidebar-search.php. I have also made the searchform.php which should get the data from sidebar ...
2
votes
4answers
2k views

How to show custom static content at top of each category page?

I want to display custom static content, essentially an image and a small description, at the top of each category page (different for each category and sub category), displayed above a list of titles ...
0
votes
1answer
144 views

How to Setup a CDN for All Content?

I know it's possible to setup a CDN with W3 Total Cache for cached content. However, how would I setup a CDN with WordPress to initially upload all media content (images, videos, files, etc.) ...
0
votes
2answers
3k views

Redirect user based on his language and country using WPML [closed]

I am using WPML as a languages solution in my blog (in my case it's English and Spanish) I would like to know if there is a simple way of detecting where is a user coming from (which country.. I ...
4
votes
1answer
2k views

Changing the media library default tab

› Moderator Notice ‹ This question exists as it fills a specific criterion and/or has historical significance. The current answers do not work for current WordPress versions. If you got a ...
3
votes
1answer
386 views

How to link a Custom Post Type submenu to a Nextgen Gallery page?

I've created a custom posts top level menu item but I would like to have a submenu under that linking to the Add Gallery page of Nextgen, as the client wants all their functionality bundled up under ...
1
vote
2answers
760 views

Do I have to use a Wordpress specific CSS reset, or is a normal, Eric Meyer style CSS reset fine?

The great starter theme _S for Wordpress has the following CSS reset included, which works pretty well I find: https://gist.github.com/4173728 But I prefer the Eric Meyer one, which I'm sure you're ...
3
votes
2answers
4k views

How does WordPress generate URL slugs?

Is there a page somewhere that details exactly how WordPress generates slugs for URLs? I'm writing a script that needs to generate URL slugs identical to the ones WordPress generates.
1
vote
1answer
215 views

Importing Data from a Non-WordPress database, into WP

I'm migrating data from a totally different database style into WP. The main issue I'm trying to wrap my head around is how to import any meta data, given that WP uses a key value pair style for meta ...
2
votes
1answer
247 views

Is there an existing capability to allow editing of only pre-existing pages? If not, a good way to implement this?

I'm working on a setup for which I need general users to be able to edit a specific list of pages, but not create any new ones. Looking through the Codex, I don't see anything that will come close to ...
3
votes
2answers
346 views

Is there a WP Way of getting a filehandle?

I'm using an external CSV reading library that takes a filehandle (resource) as an argument. I'm using wp_handle_upload() to actually process and store the file in the Uploads directory, but that ...
4
votes
1answer
271 views

Wordpress - Creating multiple versions of the same single-customtype.php depending on selected taxonomy categories

I have registered a custom post type 'Clients' and a taxonomy for this post type for categorizing posts. There are currently 3 categories for a Client: 'Logo Project', 'Video Project' and 'Web ...
3
votes
2answers
751 views

wp_mail function timing out

I have the following function. This is part of a membership-based site. When a post of the type "message" is moved to Publish status, it should send an email to all users who belong (custom user meta) ...

15 30 50 per page