All Questions

Filter by
Sorted by
Tagged with
10
votes
5answers
5k views

How can I update a wordpress plugin from a Git repository (github)

is there any way to easily update a plugin installed on multiple sites from a github repo. I know I can do it from the command line of each server using git pull. but is there a way to do it from the ...
2
votes
5answers
11k views

Prevent duplicate posts in wp_insert_post using custom fields

My source links are something linke this : http://sample.com/entertainment/default.aspx?tabid=2305&conid=102950 http://sample.com/entertainment/default.aspx?tabid=2418&conid=104330 http://...
0
votes
2answers
194 views

Custom post type with custom taxonomy

My WP site has 2 custom post types, "Projects" and "People". There can be unlimited number of "People" per project and I'm thinking about a way to integrate the projects section with "People" section. ...
3
votes
2answers
3k views

Post Format Archive template name for theme folder?

What should I call the archive file for a post format? Ex archive-gallery.php? (doesn't work) I would like to create a list of all the gallery formats with a preview and some custom taxonomies thrown ...
3
votes
4answers
3k views

WordPress eCommerce plugin for books

I am looking for a WordPress plugin or helping resource which I can use to build up a eCommerce website for books which has "View Inside" feature, payments to be handled with paypal. Heard of ...
1
vote
1answer
718 views

Need help with simple rewrite rule (shouldn't this be easy?)

All I need is a rewrite that will change example.com/anyphrase into example.com. Here is what I am using: RewriteCond %{HTTP_HOST} ^example\.com RewriteCond %{SCRIPT_FILENAME} !wp-admin RewriteCond %...
0
votes
2answers
3k views

Custom Permalinks for Custom post Type Archives?

I know that WP 3.1 has added support for archives for custom post types but is there any way to customize the permalinks for them?
1
vote
1answer
128 views

Main timeline in a different path

I have a home.php file which I am using as my home page and it is showing a specific page. In my index.php I have my main timeline. But when I access this page I get redirected to home.php. How can ...
6
votes
7answers
25k views

How to add a class to the comment submit button?

How do I add a class to the comment submit button? The simplified function comment_form(array('id_submit'=>'buttonPro')); obviously only changes the id and class_submit does not seem to exist. I ...
0
votes
1answer
297 views

redirected to the login screen when I do a blank search

why when I'm offline , when I click the search button and not put any words I am redirected to the login screen? I simply click in search button, don't put any word. If i'm normal user, don't logged ...
107
votes
12answers
15k views

Verifying that I have fully removed a WordPress hack?

My for-fun WordPress blog at http://fakeplasticrock.com (running WordPress 3.1.1) got hacked -- it was showing an <iframe> on every page like so: <iframe src="http://evilsite.com/go/1">&...
1
vote
1answer
1k views

Using second site as staging area

WordPress' "preview" mode is good, but not perfect. How can I create a "staging site", where I can make changes, and then, when I'm satisfied, mirror the changes to my production site? I realize ...
0
votes
1answer
1k views

show custom posts types in archives

I have custom post types using the default categories 'taxonomies' => array('category') how do I get the custom post types to appear when I click on the category link? Do I need to edit archive....
4
votes
4answers
40k views

How to redirect a sucessful registration to a page template?

Each time I register I end up in the wp-login page (back-end): Is there any way of redirecting the users who register to a page template (front-end)?
13
votes
5answers
25k views

WP_DEBUG is not set, but I'm still getting warnings

If WP_DEBUG is not set, as I understand it, you should never ever see warnings. But on some sites on some servers, I'm still seeing a few. Not all the warnings that would be displayed if WP_DEBUG was ...
0
votes
2answers
127 views

WP confusing “links to my articles” with “comments”?

I added a new article in my WordPress blog. In this article I included a link to one of my previous articles in the same blog. That article then informed me that I had a new comment. The comment was ...
0
votes
1answer
276 views

Which hook to use when adding ajax to viewer-facing side?

I have a shortcode that contains a form. I want to use jQuery/Ajax for POSTing. For this, I want to add javascript to the page where shortcode is added? Which hook should I use? wp_enqueue_scripts ...
2
votes
2answers
211 views

Showing Custom Content in a Nav Dropdown

I have a custom content type "balloons", and I've assigned a parent category to a "balloon" item, "Water Balloon" I've made the Balloon category a primary menu item. I want a link to "Water Balloon" ...
1
vote
1answer
647 views

How can I filter by slug depending on language selection

I'm new to this site but looking at the quality of answers provided here I will be here for a long time :) Ok, first a bit of info: I'm developing a bilingual website (English & Japanese) using ...
0
votes
1answer
117 views

Checking for custom field in admin pages

I am loading some scripts conditionally for the admin section with : if (is_admin()) { wp_register_style('admin_js', get_bloginfo('template_directory') . '/admin.js'); wp_enqueue_script('...
0
votes
3answers
259 views

Wordpress Post Deletion Issue

I have installed wordpress on one membership site and found that whenever editor writes post on wordpress and attempts to post it, deletes the half of post randomly. I don't know what could be the ...
1
vote
1answer
262 views

Nested Pagination

Is this possible for wordpress? Something like, [A] [B] [C]...[X] [Y] [Z] ...... posts with title starting 'z' ....... 1 2 3 4 next>> Can someone point me to the right ...
5
votes
6answers
661 views

WordPress Plugin Development from Scratch. How? [closed]

I would like to learn how to create a plugin from scratch, there are tons of tutorials out there on the internet, but they are either premium or not a reliable resource. would like to know which are ...
0
votes
1answer
2k views

How to test custom rewrite rules /permalinks?

After much research, I think I can wrap my brain around WP's rewrite system. I would like to know, though, how to properly test rewrite rules to see if the right rule/tags is being used and the right ...
0
votes
1answer
89 views

archive as a page, so that it can be added in the wp_menu_nav

http://localhost/lyrics/don't-turn-me-away/ is a custom post type. my question is how to display http://localhost/lyrics/ as a page and not an archive? my goal really is just for it be added to ...
1
vote
2answers
2k views

Show recent posts in menu?

I'm building a menu which contains categories. Is there a way to make each menu option show a list of recent posts in that category when you hover over it?
5
votes
1answer
719 views

How to give a CPT (custom post type) a date based url

I have events that have an event-date custom field. I want to create a date based page to display all events for a given day, and my hope was to use the url to help with that. I have a 7 day ...
0
votes
1answer
294 views

What happened to my Inactive Widgets?

I have purchased the DynamiX theme, and I'm trying to use it for the first time. I was looking at the widgets, and I saw some neat customized (Dynamic maybe?) widgets in the Inactive Widgets section. ...
16
votes
11answers
29k views

wordpress on localhost lamp doesn't let me install plugins

i've installed a LAMP server on my ubunutu 11.04. i've installed wordpress and hooked it right with the MySQL db. i've changed the permissions of the www-data group to read and write files. every ...
1
vote
2answers
141 views

Wordpress converting my code

I am having difficulty with Wordpress continually changing my code on me. IE: FROM THIS: <script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/js/swfobject.js" ...
1
vote
1answer
95 views

Transferring author information from a custom field to a proper author

A WordPress site I'm doing a redesign for has around 1.400 posts by approximately 30 different authors. Unfortunately the authors of the posts have so far been entered as a custom field within the ...
1
vote
1answer
943 views

WPML & CFT: keeping custom field file to translation

i got a wp site with the WPML plugin and the CFT plugin. I set up custom fields for posts and what i'm trying to do is to keep the content of an input type file from the original post to its ...
4
votes
1answer
4k views

media_sideload_image generates blank?

I'm creating a custom post form that is supposed to take an external image and uploads it to the media library and attach it to that post. This should be possible by using media_sideload_image, but I'...
1
vote
3answers
573 views

Windows 7 download WordPress and load into LAMP stack and configure

What's the quickest way to create a Windows instance of an existing WordPress site assuming I've got the backup of the code and DB from the server? I have played around with various LAMP stacks but ...
0
votes
2answers
78 views

search and add in wordpress content

I have a wordpress plugin that displays videos through a shortcode. My problem is it assigns the div's with ID's such as video-1-player, video-2-player, etc. I need to create a function that searches ...
0
votes
1answer
176 views

How To Detect Posted Comment in Theme Development?

A theme normally posts to wp-comments-post.php when someone leaves a comment. When successful, it does a redirect to the page again but tacks on "#comment-" into the URL. What I was wanting to do was ...
0
votes
1answer
1k views

Upload image through URL?

I'm trying to create a custom form which takes an image (offsite) and attaches it to the post so I can use it as a thumbnail in the loop. I've been looking at media_handle_upload but that appears to ...
0
votes
1answer
44 views

Cannot Access Console

http://bigpicturepartnering.com I can log into the site. When I try to access the WP console I get the following error: PHP Fatal error: Call to undefined function is_site_admin() in D:\websites\...
0
votes
1answer
124 views

Creating an option for writing a post without an author attribution for a group blog on Wordpress

I'm developing a group blog on wordpress (first time working with it) and the client has requested that a 'None' option be added where an item can be posted without a "by" attribution. So basically ...
0
votes
1answer
23 views

Creating an option for writing a post without an author attribution for a group blog on Wordpress

I'm developing a group blog on wordpress (first time working with it) and the client has requested that a 'None' option be added where an item can be posted without a "by" attribution. So basically ...
3
votes
2answers
1k views

Post Type only showing for “Admin” under “Appearance” > “Menus”

I have created a custom taxonomy as described on the Codex. I have "public" set to true, which show_in_nav_menus is supposed to inherit from, and have also explicitly added the show_in_nav_menus ...
2
votes
2answers
56 views

What are WordPress installation percentages by version?

I'm in the process of developing a plugin, and I'd like to figure out which versions of WordPress to support. But to get a good idea I'd need to know what percentages of old Wordpress versions make up ...
0
votes
2answers
290 views

Breadcrumbs stop working on a specific template file

I'm working on a theme and i use dimox's breadcrumbs to display breadcrumbs in the footer, so far so good, works almost flawlessly BUT there's one template file where i use 2 loops and i'm guessing ...
1
vote
2answers
846 views

WordPress built-in method to extract array of term IDs?

I'm querying a custom taxonomy for a post, hoping to get a list of all terms for that post and taxonomy. get_the_terms($post_id, $taxonomy) works, but gives this ungodly array of term objects that ...
-1
votes
1answer
248 views

get facebook status

I'm looking for a good, simple PHP or JS function to get my latest Facebook status updates. Anyone have a good solution? I had a JS script but simply stop working. heres the code: view code Thanks ...
2
votes
3answers
4k views

Loading scripts & styles from a meta box callback function

Case: I got a set of classes that build form fields based on data from an input array. The class can build the following types of form fields: input (basic, hidden, password) textarea radio checkbox ...
5
votes
2answers
428 views

Wordpress Copyright Dillema (i.e. Powered by) [duplicate]

Possible Duplicate: Removing the “Powered by WordPress” Link? i have a bit odd question but here it goes: Due to page styling issues with the copyright logo, i deleted the whole div ...
1
vote
1answer
636 views

Is $object_type truly required with register_taxonomy()?

When registering a new taxonomy, the second argument of register_taxonomy($taxonomy, $object_type, $args) is the post type (or types) that this taxonomy is registered for. However, when registering a ...
3
votes
1answer
1k views

plugin wants to update to wrong plugin

I get a "update available" notification for my custom plugin "breadcrumbs trail nav" (not hosted in the official repo). Point is that there's a) no update available and b) it wants to get updated to ...
0
votes
2answers
1k views

Pages section (only) not loading after publishing large number of pages

I'm having some issues with my first wordpress installation that's really throwing me for a loop. First some background info on the situation. I've been working on converting an HTML site into ...

15 30 50 per page