All Questions

Filter by
Sorted by
Tagged with
1
vote
2answers
2k views

Change order of comment fields

Is there a way to display the comment field first and then the Name / Email / Website fields? I am using <?php comment_form( ); ?> in my theme. I am not looking for a CSS solution.
2
votes
1answer
345 views

How to add terms to a post depending on its title?

I want to add all posts with keyword "Dog Training" in the post title to a specific category. Reason: If you enter something into WordPress search it's not an exact match. Previous WordPress search ...
1
vote
1answer
2k views

Is it recommended to pass some data to scripts in `wp_enqueue_scripts`?

I have on many occasions used wp_enqueue_script to pass some 'query variables' to scripts like this: function my_enqueue_scripts(){ $tempurl = urlencode( get_bloginfo( 'template_url' ) ); ...
0
votes
1answer
2k views

How to get Facebook comment plugin in blog? [closed]

I am trying to use Facebook social plugin to my blog. I tried few Wordpress plugins but getting error in it. Lastly, I tried using Flexo Facebook Manager(http://www.flexostudio.com/flexo-facebook-...
2
votes
3answers
3k views

Add class to Categories Widget

I have a few default widgets which I am using in a custom sidebar and I'd like to edit its output in my functions.php file. Currently the categories widget and blogrolls are generating an unordered ...
0
votes
2answers
750 views

Fetching uploaded images using Link URL

I am trying to fetch the uploaded images using the link URL (The Link URL option is available in the Add Media when we upload/insert media) and display it on web. I have gone through the methods ...
8
votes
2answers
5k views

Delete all scheduled events with a particular hook

I have several cron jobs all hooked to the same hook, but each with a different argument (a post ID). It appears wp_clear_scheduled_hook only clears job which match the argument passed with it (or ...
0
votes
1answer
4k views

Using 'strtotime' function to convert a custom-meta-box to a date-stamp

I am building a "podcast" post type in a wordpress build using custom-post-types, meta-boxes & taxonomies. There may be a simpler way to do this.. I'm still learning and this is my first go at it....
-1
votes
1answer
3k views

Plugin for Marathon Running Event Management [closed]

Is there a plugin that works to be a marathon running event management tool? I need things like ways to accept registrations, payments, and displaying the results when the event is over.
1
vote
1answer
2k views

Function: Add link to / inside div

I'm looking to create a function that will add a link to a div (or replace the div with the div and a link - in simple; I'm trying to create a plugin that will turn the header image into a clickable ...
0
votes
1answer
377 views

Jeditable Plugin working as it should - scope issue?

I am using the Jeditable plugin to enable inline editing on a table inside the admin area, generated by a small plugin I've written. (http://www.appelsiini.net/projects/jeditable). Basically ...
1
vote
1answer
137 views

Wordpress Custom Content and Taxonomy's Archives

Ok so I have set up a custom content type: Event I have then set up the custom taxonomies in hierarchical format for Event: Type To display "event" posts in each "type", I'm using the template: ...
0
votes
1answer
193 views

help with rewrite_tag and rewrite_rule for custom page GET variables [duplicate]

Possible Duplicate: custom htaccess rewrite rule for page ok i made another post and i got pointed to the Rewrite API however, when i do print_r($_GET) on the page, it echos an empty array ...
1
vote
1answer
9k views

custom htaccess rewrite rule for page

i have a page in wordpress called "video". its page id is 6, and its slug is "video" in my theme ive set it up to show content based on GET variables here is the URL rewrite im trying to set up: ...
9
votes
5answers
15k views

How to validate a user from ouside wordpress/php?

I'm working on an ajax application that will be embedded in a wordpress page. The ajax app exchanges data with servlets running on tomcat. Now the servlets need a way to determine if a request comes ...
0
votes
1answer
1k views

search results to a variable in search.php

Is there any way I can get the search results to a variable in search.php file? Now I have the following code in my search.php file. <?php if (have_posts()) : ?> <h3 class="pagetitle">...
1
vote
2answers
2k views

Submitting POST data to a custom page template triggers a 404, why?

I've got a simple custom page template with a form on it. This page can process the form itself, so the entered data gets submitted there as well, using POST. Submitting the form, however, results in ...
1
vote
2answers
522 views

Network: retrieve a list of latest posts

I need to list all the latest x posts from the whole Network in my WordPress Network. I am already using the Sitewide Tags plugin to collect all posts in a separate blog, but I also need to list the ...
0
votes
1answer
160 views

Posts 2 Posts Plugin : error message everywhere [closed]

Just upgraded to the last version of Posts 2 Posts plugin (I have the last WP version too) and I have the following error message on every dashboard page : « Warning: Connection types without a 'name'...
1
vote
1answer
1k views

Getting pages filtered by template assigned

I want to retrieve pages with determinate template assigned. Function get_pages() hasn´t any parameter to select by template. For exmaple if I created three pages: Home, Page 1 and Portfolio. After I ...
0
votes
1answer
2k views

Dropdown list of taxonomies won't display selected

I used the answer in this question to show a dropdown list of my taxonomies and it works great. But when I save the post/update and the page refreshes/loads the taxonomy I selected reverts back to ...
0
votes
2answers
195 views

User access control in sidebar archive and categorires

Could someone please help me solve my problem which is: I want content restrictions based on user roles and a sidebar category based on user roles. I have three type of user roles: Beginner, ...
0
votes
1answer
72 views

Exporting by table

I am using PHPmyAdmin to move a site. My site is too large to use the single file export/import method. (I know how to do it, it works fine on smaller sites.) It seems the only thing working for me ...
1
vote
2answers
3k views

How can I enable a TINYMCE rich text editor in the admin interface?

I'd like to add some text above my category archives, and I'd like to use the built-in Wordpress TinyMCE editor to do it. I've seen some plugins like black-studio-tinymce-widget which does a nice job ...
0
votes
1answer
933 views

Correct way of getting the current page uri

Can someone please tell me how to get the correct url of the page the user is on? I need to grab the url and construct a new link. Here is the issue that I am having. For example, let's say I am on ...
1
vote
1answer
2k views

“Master” Wordpress Multisite - Database Sync

I've had an idea in my head about creating a Wordpress Multisite environment that would have Plugins along with them that would not only have "default" settings, but be able to update each blog's ...
1
vote
1answer
1k views

Set Wordpress TinyMCE Editor To Readonly

I am trying to disable the tinyMCEeditor in wordpress so it is readonly if the post has already been published. I already have the logic for determining if the post is published (by using $post object'...
0
votes
2answers
6k views

Insert the current theme header into an external HTML/XHTML file

My Emacs org-mode projects get exported to XHTML files. I would like to loosely integrate them into my blog. In particular, I'd like to use the header (and possibly footer) from my theme in the ...
-1
votes
1answer
164 views

Shortcode not picking up custom field

I created a custom field that allows me to set the cropping style of timthumb, but I am also using short code to populate a page with blog posts, but the shortcode isn't picking up the customfield, so ...
2
votes
1answer
146 views

Rewrite of URL with '[' ']' or '(' ')' as literals

Trying to match and URL like this linktosite/alphaNum/123/321/alphanum[alphanum].jpg in .htaccess I can match and extract all the groups properly with linktosite/(.+)/([0-9]+)/([0-9]+)/(.+)\\[(.+)\\...
0
votes
2answers
2k views

Make Current/Active Page Number a Link (WP_LINK_PAGES)

With the default wp_link_pages the current/active page number is not a link. I would like to find a code/hack which turns the current/active page into a link to the top of the page. I am already ...
2
votes
1answer
248 views

Custom Text Under Navigation Links

My navigation bar of my wordpress theme is set up to wp_list_pages. I'd like to display text underneath those page links. Like: Home "Home Sweet Home" Do I need a widget to accomplish this or is ...
0
votes
2answers
343 views

query if page has not child

I'm trying to create a page which display a few of sub pages (child pages), however if the page has not child I would like to display a message. I cannot get a query that allow me to do something ...
0
votes
1answer
3k views

Register sidebar 'before' and 'after' html as div rather than li tags

I am making sidebars for my theme using the register sidebar function. The codex does it something like this if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Right ...
0
votes
2answers
50 views

Custom /Page/2/ Template Only

Is there a method of doing this? Can I use PHP to say if(URL=page/2/) { } or something like that within my template? Essentially, I want an ad to appear in my sidebar when a user clicks 'Older ...
0
votes
1answer
450 views

How can I add user profile fields to my mailpress mailout

I want to be able to send emails to my subscribers but reference their name in the email and possibly some other profile fields. Can I do this using mailpress? So for example. I want each email ...
0
votes
2answers
1k views

WP SQL Categories Export and Import

I want to export and export only the Categories and their description using SQL. For now I've managed to retrieve them using this: SELECT wp_term_taxonomy.description, wp_terms.term_id, ...
1
vote
1answer
3k views

“You do not have sufficient permissions to access this page” upon accessing my newly created plugin page

I am following "Write your own plugin tutorial" and I made it, activated it, added it to settings to have it's own plugin page but upon trying to access that plugin page I get above message saying ...
3
votes
2answers
492 views

What could be causing my wp_query pagination to break?

I'm using categories and wp_query to create an "advanced search" feature on my website. It was working great until recently I noticed that the pagination was broken. The following 2 links should ...
16
votes
3answers
12k views

wp_editor textarea value not updating

I am using the *_add_form_fields action to add fields to a custom taxonomy. One of those fields is a wp_editor(). The problem I am facing is that when I output the WordPress editor on the page like ...
0
votes
2answers
58 views

Importing specified data/field

I'm creating a website for a publisher that contains +- 1.500 registered and these books have its prices rearranged time to time, obviously it would be a hard time to manually upload each one of them. ...
0
votes
1answer
174 views

Problem with custom user meta field

I've recently added a new field into the User Profile section of my blog So that I may define the gender of the user. On the author bio section I have this code: $authorgender = strtolower(...
4
votes
5answers
9k views

$post->ID and the_id() always return the wrong value

I have a site where I display the same exact footer on every page. There is one exception, though. On one certain page I need to change one small part of the footer. I figure the simplest way to do ...
0
votes
2answers
592 views

Get attachments only for this post

I have the following code: <?php while (have_posts()) : the_post(); if(get_the_title() == 'Archive') query_posts('posts_per_page=1&cat=1'); $category = ...
2
votes
2answers
149 views

Text and image in taxonomy page

I want my taxonomy pages have some custom text and an image before the list of posts and excerpts. I need it for a personal travel blog. I have a "travel" taxonomy that keeps all travels I've made ("...
1
vote
1answer
1k views

add_submenu_page function to show videos table

wondering if its possible to show the attachments admin list for videos by using a custom menu link? Any pointers welcome! D. add_action('admin_menu', 'mt_add_pages'); function mt_add_pages() { ...
2
votes
1answer
3k views

List category posts - Thumbnails are not displaying

we've been using List Category Posts to display different category posts on one page and it was working great until recently when the thumbnail images disappear. The 'thumbnail=yes' option is there. ...
0
votes
1answer
16 views

Ordering custom posts

I have a page on my site that has customer testimonials. Each testimonial is a custom post. I want to order the testimonials arbitrarily. What's the best way to do this?
0
votes
1answer
137 views

Advanced Multi Tier Navigation across columns

I've been struggling with this for a while now and need some help. I'm trying to create a quite specific navigation setup for a client. I have a top level navigation which is hard coded and not a ...
10
votes
1answer
2k views

How to remove the tag cloud from custom taxonomy admin page?

When I register the taxonomy I have this which I thought might hide it: 'show_tagcloud' => false The default category page does not show a tag cloud so why does my custom taxonomy page, how do I ...

15 30 50 per page