Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (14)

0
votes
1answer
1k views

Custom Post Type & Custom Menu Walker to append custom class for active post types

I have an interesting problem I am trying to solve here regarding a custom nav menu. Essentially, I have created a custom walker class for my nav menu and I have manually added a menu entry directing ...
1
vote
2answers
1k views

How to customize default wordpress editor?

Good to hear that Sonny (wordpress3.3) has the new editor API wp_editor() that gives us the ability to use multiple instances of the editor in our custom fields with ease. But I needed to customize ...
0
votes
1answer
337 views

Missing current_page_item in custom menu

I'm using the new custom menus in my side navigation and it only creates a class sub-menu in the UL's but does not use the current_page_item like when you use wp_list_pages(). I have 3 levels and only ...
-1
votes
1answer
1k views

How to Implement SAM Broadcaster with Wordpress? [closed]

I want to implement SAM Broadcaster software in wordpress. This is radio automation software. my client wants to implement with wordpress because he want to add some articles and videos regularly with ...
2
votes
2answers
3k views

Custom permalink structure only for default posts

Does anybody know how to modify the url struct only for the single post page? When I go to a post page, the url should look like: example.com/xxx/my-post. All other urls (with the exception of the ...
0
votes
1answer
184 views

Portfolio & Blog cohabitation : multiple single.php files?

I'm currently creating a website that's going to be powered by Wordpress and have both a portfolio and a blog. How should I go about coding up the single.php? I understand custom post types are the ...
0
votes
1answer
121 views

Attach File Funcion for Common people

How can i allow my visitors that they can attach files like word text pdf with their comments or can allow attach file to register users is their any plugin or any other way for achieving this task ?
2
votes
1answer
578 views

custom session variables being lost in FF [closed]

for whatever reason firefox is dropping my custom session variables. the variables are for a custom user system that is built into my custom theme. this only happens in firefox, the user system works ...
0
votes
1answer
159 views

Theme Options Menu Item - Permission Issue

I am trying to create a theme options menu item for my custom theme. However, when I add the following piece of code in the functions.php file... add_menu_page('Page title', 'Asteria', ...
1
vote
1answer
2k views

Adding my own “add to cart button”

I am using Jigoshop to build an e-commerce site. The end goal is for the front page to have a featured products section. Jigoshop provides a shortcode, but the shortcode defaults to the medium ...
1
vote
2answers
2k views

Search a post using the date it was posted

I want to search a post based on the date it was posted. Example, in the search box, I would place there November 22, 2011 and all posts during November 22, 2011 would be displayed. Im desperate on ...
3
votes
1answer
358 views

Converting primary keys from autoincrement integers to UUIDs

The Goal I'd like to have WordPress use a unique identifier instead of auto incrementing on the primary key, which is currently the WP standard approach, in order to facilitate integration of several ...
-2
votes
1answer
217 views

Google not index my Custom 404 page ?why?

I have a movie site. When i create First Look of that movie there also created further links related to that movie in the end of the Post using meta tags. For Example Movie HD Videos Movie Mp3 ...
-1
votes
1answer
960 views

Getting Custom Field value in WP_Query

i am trying to display first post of 3 categs on my index page. so for that i wrote a little function as follows: function excateg($categ) { $recent = new WP_Query("cat=$categ&showposts=1"); ...
0
votes
1answer
1k views

Multiplile values checkbox or select in custom meta box

I have followed the great answer by Jan Fabry in this question . How to make multicheck for post/page meta box this works great. My question though would be , what if someone WANTS a serialized ...
0
votes
3answers
234 views

Different development environments (Mac & Windows)

I am trying to synchronize development between a Windows user (WAMP) and a Mac user (Regular Apache). Windows User (me) Since I use IIS I need my port 80 so I have changed the ports on WAMP to :666. ...
0
votes
1answer
661 views

Magazine style frontpage with multiple categories/loops and no duplicate posts

I am migrating a static magazine site to wordpress. I would like to have a frontpage displaying multiple categories with a few posts in each, e.g "politics", "environment", "health" and "technology". ...
0
votes
3answers
361 views

Custom Select Query - Selecting the Year?

I have a query were I'm grabbing all post types of "news" in 2010, but it doesn't select the posts from that year. What am I doing wrong? $querystr = " SELECT $wpdb->posts.* FROM ...
1
vote
1answer
111 views

How to make classes for posts?

Thanks in advance. I'd like to have posts with different colored borders and headers. It would be nice to choose a category of the post (red, blue, black, etc.) and have it change the class for that ...
0
votes
1answer
1k views

Function to return true if current page has child pages

I'm trying to create a simple function to do a "status test". Goal is to test and see if the current page being viewed has any child pages or not. Using this to alter layout to accomodate child ...
0
votes
1answer
80 views

Check if a custom post type has already been created

I am creating a plugin that creates a new custom post type. How can I check if the custom post type has been created already (maybe by the user in functions.php for some other use)? Actually I would ...
0
votes
1answer
36 views

Last x Posted Categories?

Is there a widget available that will list the latest x categories according to posting date, essentially providing a list of the most recently active topics?
6
votes
1answer
596 views

Search Custom Post Type Pages and Custom Fields in 2 Dropdowns?

On my custom post type pages I have custom fields that the user can edit. What I want is to have a search form with 2 select dropdowns: one dropdown that is populated with all the top-level custom ...
0
votes
1answer
176 views

What is the best way to make a custom page from a plugin?

After hours seeking through the WordPress sources it I was unable to find ANY reasonable method of creating a front end page from a plugin. My goal was simple, I wanted http://mysite.com/friends to ...
0
votes
3answers
154 views

Simplify the admin end

I'm thinking about using WordPress as a content management system for a school. The frontend of WordPress itself would never be seen by the students, but the admin interface would be used by teachers ...
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
389 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
524 views

Link Posts to External URL

I'm building a site which lets users to submit links using User Submitted Posts plugin. I want every post title to link to its URL something like reddit. Moreover, User Submitted Posts plugin add URL ...
0
votes
2answers
2k views

Multiple Post Thumbnails Plugin - Need help with code

I am having problems getting this plugin to run but have had little success getting it to work, even after reading past entries. I would be grateful if you could see if the code is right. Code in ...
0
votes
2answers
49 views

What are some good resources for teaching end-users how to use WordPress?

As a web designer and developer, I'd love to simply point out my clients to some YouTube videos or articles that explain from the ground up what WordPress is without blowing their mind. Some of my ...
2
votes
1answer
548 views

Add new section to “Right Now” widget

I've been hacking away at modifying the "Right Now" widget in the WordPress dashboard, and although there are some hooks/filters which apply to just that, they are sparsely documented or explained. ...
0
votes
1answer
113 views

How would I make a function to dynamically determine if user is logged to change navigation menu text?

I would like to create a function to determine if a user is logged in or logged out. If the user is logged in I would like the navigation menu text to say "My Account" (this is what it currently ...
1
vote
2answers
196 views

How do I implement a .diff changeset from core.trac.wordpress.org locally?

I have a local copy of the latest version of wordpress that I set up using svn co http://core.svn.wordpress.org/trunk/ There is a diff that I want to pull into my local fileset: ...
-1
votes
1answer
253 views

Custom Page Template and Category Exclusion

I have a blog (bernsteinbear.com) that uses the TwentyEleven theme. I'm trying to make a custom page template for the front page (a blog page) that gets all the posts except in the "Comic" category. I ...
0
votes
1answer
47 views

I need advice on how to structure the categories according to the layout i have

I'm seeking advice on how to structure the categories so it fits well my page structure: The main highlight is a single post and the secondary highlight boxes will probably contain a slides showing ...
1
vote
1answer
50 views

How to add a button which saves the post then executes a function

Currently, I have a function called 'pub_notification' in my functions.php file which sends an email when the post is published, using the following code: add_action('publish_post', ...
0
votes
1answer
70 views

Setting variables as custom field values

I have a function that performs some custom queries to get specific information regarding a post (children count, dates, etc). I am wondering if it is possible to send this custom query info (set as ...
0
votes
1answer
930 views

If custom image header does not exist display text header

I've added a theme options page to my site (in my functions.php file): add_custom_image_header('', 'admin_header_style'); My header.php contains this code, which displays the Featured Image as the ...
4
votes
2answers
273 views

Add more rows on media picker

I'm trying to add more rows in the media picker modal window. Is there any clean way to achieve doing this ? Thanks !
0
votes
1answer
239 views

How to query an out put value?

I have this custom query that Im working on and I need to be able to query output values as well as actual stored values. Example: $string = "This is #*&^% a test"; $string = ...
0
votes
1answer
723 views

Check & remove special characters in a field?

I would like to check whether a field has special characters, remove those characters and output (save) the value to another field. I am creating a user search function that search various fields, ...
-1
votes
2answers
95 views

Check if a field is capitalized?

I want to check the if the first letter of a field is capitalized. Example: If (First Name field) is capitalized { Capitalized! } else { Not Capitalized! } Thanks Thank you
3
votes
2answers
885 views

Gallery Shortcode: using link attribute to link to a specific image size

When [gallery link="file"] is used, it calls the original image file source. It it possible to create a shortcode filter that links to a specific size, like: [gallery link="medium"] or [gallery ...
0
votes
3answers
157 views

Single page template

I am trying to create a template for a custom page type that will put the same data on every page of this type. The only problem is I see examples of custom page types but only using loops. Do I have ...
0
votes
2answers
144 views

How To Use Custom Tax of a Post Type

I've defined a custom post type. I've defined a custom taxonomy for this custom post type. I've populated the custom taxonomy. How do I make the list of custom taxonomy values show up in the admin ...
0
votes
1answer
3k views

show only sub categories if available?

Hii i want that when i click on category link that show sub category if available instead of posts list If No Sub category available then show normal posts how to do this that if available sub ...
0
votes
1answer
3k views

Changing settings of WooCommerce

I'm using the recently released WooCommerce plugin for my e-commerce site. In WooCommerce settings, the currency of my country is not listed. So I have to add it manually by coding in woocommerce.php ...
6
votes
3answers
1k views

Localization: I want the backend: english and frontend in defined language

I'd like to have the backend of Wordpress in English and use a different locale for the frontend so far I figure out perhaps I could do it by setting in the wpconfig the locale I want to use in the ...
0
votes
2answers
996 views

Dynamically add / duplicate custom meta in custom post types

I am using Custom post types in one of my themes I have one custom post type called "accommodation" with meta boxes to add details such as type of rooms (single, twin, double...); each room has a ...
0
votes
1answer
202 views

how to use custom post types collectively integrated with each other

i will star with some back ground and my goal before i gt to the point i am trying to make a anime viewing website using wordpress like www.watchanimeon.com and www.animedreaming.tv i tried a ...