2
votes
1answer
268 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
461 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
288 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 Design'...
3
votes
2answers
886 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) ...
1
vote
3answers
54 views

Per site configuration

I'm building a custom theme that I will reuse on more than one site and would like to be able to configure some things from the admin. For example setting the Twitter and Facebook pages links without ...
1
vote
1answer
2k views

Check if specific username is logged in

How can you check if specific username is logged in?
0
votes
2answers
728 views

Reversing the order of items in a category rss feed?

Is there an easy way to reverse the default item order of a category rss feed? Default: Last posted item first Wanted: First posted item first No plugins please, plain wp api function calls (such ...
0
votes
1answer
469 views

Call do_action class's function

There is the following do_action else do_action( 'example', $this->nothing()); Where nothing() does exactly what it sounds like. This logic is in a public function testFunction in a class ...
1
vote
1answer
1k views

WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)

I'm trying to write a new "related posts" widget (for the single post view) for my custom post type, filtering by custom taxonomy terms that the related posts should have in common with the current ...
0
votes
1answer
4k views

How to add social buttons like facebook and twitter in the footer of a theme?

Hi I own the blog camilamfotografia.com.br and I'd like to add social buttons in the footer or in the navigation menu to link my site to facebook twitter flickr pinterest etc... I have tried without ...
0
votes
1answer
114 views

Function is Missing an Action Hook

I have tied an action into a status change, which works on the backend. However,using a frontend button for updating post status does not trigger the action(http://wordpress.stackexchange.com/...
0
votes
1answer
646 views

pull data from a remote wordpress database

I am trying to pull some data from a remote wordpress database. Here is the code I have: $server = "my server code"; $user = "my username"; $password = "my password"; $db = "mydb"; $con = ...
0
votes
3answers
307 views

How to remove the automated code posted in functions.php?

There is a theme hack or a worm circulating online which adds this code to all functions.php files. It happened to me on my local server. Here's the code - http://pastebin.com/AUsHUng1 How do I find ...
0
votes
1answer
499 views

Understanding Post Formats/Custom Post types Etc

I don't understand what "Adding Post Type Support" is for when we have "Adding Theme Support"? For different post-formats this is the way I was shown before. This is then how I did it for the project ...
1
vote
2answers
2k views

Modify WP Query post__in before have_posts()

I have a plugin that is returning post IDs based on $_GET data (which searches a secondary DB table). I am attempting to hook into the standard have_posts() function called within a taxonomy page to ...
0
votes
1answer
2k views

Widget update function not saving values

Hello WordPress Answers! I'm having trouble with the widget update function saving values correctly, but first let me explain the situation. I'm writing a simple news ticker widget plugin, which ...
3
votes
1answer
14k views

Get the children of the parent category

I'm trying to get all the children categories to display in this loop but I'm struggling with the code. This is what I have so far. <?php $args=array('orderby' => 'name', 'order' => 'ASC'); ...
5
votes
4answers
9k views

How to display a static HTML page while setting up a WordPress site?

I just installed Wordpress. I have a non Wordpress splash page at [root folder]/index.html. I'd like to keep the splash page up while I work on skinning Wordpress. When I try to access index.php (...
0
votes
1answer
1k views

SQL query - get ids - Advanced Custom Fields / WPeC

I need to query the database on add_action( 'init', '...') to find post ids with the field 'product_discount_option' set to true. I know at least one of my product posts have the field '...
3
votes
1answer
561 views

Show Biographical Info while creating new user

Is it possible to show the Biographical Info textfield while creating a new user? I know it's possible to add user bio by editing a user AFTER it has been created. But I would like to do this while ...
0
votes
1answer
753 views

Buddypress: remove forum tab in user profile page? [closed]

I need to remove the forum-tab in user profile pages. I have tried alot of things but no result. I do not want to do it by css. Tried this: http://www.themightymo.com/2012/01/26/how-to-add-remove-...
0
votes
2answers
3k views

Pagination for a category

Hi I have page displaying 20 featured images and info of a specific category, I wish to able to have pagination so I can have multiple pages for the category. How do I do this? I cant seem to get it ...
2
votes
1answer
1k views

How can I achieve something like has_post_format( 'standard' )?

In opposite to get_post_format, the conditional has_post_format() function returns a boolean value and should be the perfect function for a conditional check like: if ( has_post_format( array( '...
0
votes
1answer
2k views

Using wp_handle_upload and media_handle_sideload with ajax

I'm struggling to figure out how to use wp_handle_upload() with ajax when processing a form. What I'm doing here is using a form to allow users to edit posts from the front end so they can do some ...
0
votes
1answer
164 views

Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?

under Settings->Reading I can set which page should appear immediately when visiting my site as "home-page". In my case I want the archive of my custom-post-type named "events" as home/front-page of ...
1
vote
1answer
457 views

How the widget can be run by shortcode

I have my own widget, that uses WP_Widget class, and executes its code inside function in this class. Is there any ways to run this widget using shortcode inside post? This is how my widget ...
0
votes
1answer
257 views

How to get the group_id from the “groups_join_group” action in buddypress [closed]

I want to get the GROUP_creator_id when an user joins any GROUP. So if I got the group_id after immediately performing the the groups_join_group action by add_action() method.
0
votes
1answer
141 views

Making a form for user to add new custom post with custom taxonomies and custom fields

I want to ask that is there a way display all my custom taxonomies in a drop down menu with checkboxes so when the user check any taxonomy it will be slected and when the user click the submit button ....
0
votes
1answer
49 views

How to set up conditionals in page templates?

I have created custom template page like this with a custom query on page showing only details fetch from my custom table not any post. /* Template Name:product */ <?php get_header(); ?> <?...
2
votes
1answer
2k views

Manually installed plugin doesn't show up

I installed a plugin called hide-title by unzipping it and copying the files to the plugins dir. But it doesn't show up in the plugin list. I've checked the following: the plugin's main php file ...
1
vote
1answer
3k views

WP admin bar disappeared

The admin bar suddenly disappeared from the front end side of my site. It is present and works alright at the backend. I thought it could be due to some plugin so I deactivated them one by one and ...
1
vote
1answer
680 views

Appending code to the_content

I'm trying to append some php code to the_content in a custom loop. I do not want to add a function because I only want to append the code to one instance of the_content, not throughout the whole site....
1
vote
0answers
60 views

404 error using Meta for Permalink rewrite

I'm trying to rewrite my permalinks using meta data from my post. The permalink rewrite works fine but I'm getting the 404 error when I try to view the post. Could someone offer a clue as to why this ...
3
votes
1answer
2k views

Remove metabox from specific page template in admin

I would like to programatically remove some meta boxes when a user is editing a specific page in the admin. The page itself is using a template (tpl-about.php). I know I can remove all meta boxes from ...
11
votes
4answers
722 views

What is the Plural of WordPress? [closed]

I mean, for what I remember of my english classes it should be WordPress', or not? Would this be a Meta Question? Or a English Language & Usage one? [update] What I ended up writing (in an ...
2
votes
1answer
375 views

Buddypress ajax problem after adding new groups sub nav [closed]

This problem has been bugging me for couple of days. After adding a new subnav, I got the following error when trying to use the drop down groups filter: 404 Not Found – mysite.com/wp-admin/admin-ajax....
1
vote
1answer
6k views

Display content of page template (get_page)

My problem is that I displayed content of 3 pages on index.php by using get_page(). The problem is that each of those pages have own page template /* Template Name: another page template */ which ...
0
votes
2answers
805 views

MF2 and qTranslate problem with custom post types post titles [closed]

I'm creating custom post types with Magic Fields v2.0.1 and i use the qTranslate v2.5.32 plugin for a second language on Wordpress 3.4.2. The problem is that on Magic Fields in the settings of the ...
0
votes
1answer
345 views

WPAlchemy - Checkboxes not saving

I'm using have_fields to loop through an array and create a list of checkboxes. Everything seems to be working great, except that the checkboxes aren't consistently showing as "checked" on the backend....
0
votes
1answer
72 views

Specific Days, Specific image on Front Page

Is there a plugin that will allow me to do the above? Basically I have a webcomic that updates twice a week with two different stories. http://www.lunarblade.com What I would like to be able to do ...
3
votes
1answer
1k views

Querying post from a multisite network

I am working on a multisite blog network where I have to display recent post on my home page, 10 post per page navigation. I did implement it using wpdb object with one complex sql statement. I got ...
0
votes
1answer
1k views

Link a lightbox thumbnail to a post instead of opening the lightbox

On my website portfolio I use a heavily modified version of the Swatch theme from Woo Themes. The theme makes the thumbnails for my portfolio pieces link to the lightbox. I want the thumbnails to ...
0
votes
1answer
2k views

Preferred Wordpress video format?

I'm developing a Wordpress blog for a client who needs to embed their own video files. Flash video was our format of choice until recently, but is there a preferred format for Wordpress? One that ...
1
vote
1answer
2k views

Get random custom posts from a custom post type

I created a custom post type named predic, I’m trying to get within one of this post other four random posts from the same custom post type. I used this code, but I keep getting the same post I’m in 4 ...
0
votes
2answers
2k views

Show content after the first and second paragraph

The function below is used to show certain content after the first paragraph. I would like to show 'content X' after the 1st paragraph and 'content Y' after 2nd paragraph. <?php $paragraphAfter= 1;...
0
votes
1answer
129 views

Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php

I have a custom post type events and am displaying these events using archive-events.php and single-events.php from the template hierarchy. I have a custom query in archive-events.php $paged = ( ...
0
votes
2answers
571 views

How to wrap “Read More” link in a DIV tag?

Can someone tell me how to wrap the Read More anchor (that displays after an excerpt) with DIV tags using get_the_content('Read More')?
1
vote
1answer
472 views

Auto resize images after adding a new size

I have added a new (small) image size to the theme we develop: add_image_size('small', 160, 91, TRUE); How to automatically generate these small images (exactly of the specified size) for every ...
1
vote
1answer
362 views

Retrieving an alt tag from a custom field

I have a theme that uses TimThumb to generate thumbnail images on a gallery page. The problem is that image alt tags are not showing for each image on the main gallery pages, see here: http://...
0
votes
1answer
1k views

Pass data back to TinyMCE from Thickbox

I've added a shortcode button in the TinyMCE editor in the page/post pages that opens up a Thickbox form. The button is working; it opens up the thickbox form like it should. However my stumbling ...

15 30 50 per page