Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (10)

2
votes
0answers
56 views

Check for and enforce unique value in user-entered custom meta field in WP Admin

I am trying to figure out how, on a new or edit post screen, to allow the user to enter a custom meta item, BUT force it to be unique. Ideally the process would work like so: Contributor logs into ...
2
votes
0answers
34 views

Why won't my custom widget stay in the sidebar after a reload?

After I drag my custom widget into a widget area and reload the page it's gone. Any ideas? <?php add_action('widgets_init','register_postTypeWidget'); function register_postTypeWidget(){ ...
2
votes
0answers
49 views

How to show in search results posts with a particular tag in a particular category?

As the home page of my blog I've a static page. There I want to show the navigation of the site. Category1 Sub-Category1 tag1, tag2, tag3 Category1 Sub-Category2 tag1, tag2, tag3 ...
1
vote
0answers
25 views

Add a custom meta box in the post options that loads some html code in the header

I run a blog that is built in the format - Logo - Nav Large Image + Email Optin Form Content / Sidebar Footer Now I want the large image and email opt in form to be optional. Right now, what I ...
1
vote
0answers
30 views

Lost password empty field error redirect to custom login

I'm having trouble with a custom login/lost password form on a site I'm building. The site is completely password protected. I have a custom login page and I'm using 'wp_login_failed' and ...
1
vote
0answers
53 views

Add success message to category add screen

I have custom taxonomy named "Products", When i add new Product using "edit-tags.php", It is added using ajax. I want to show message after it is added, like "Product added successfully"! When we ...
1
vote
0answers
33 views

order event posts by multiple custom fields

My event date data is in 3 separate custom fields and I need to sort by entire date, including day, month, year. Right now it's sorting by month only. How can I change it to sort by not just month but ...
1
vote
0answers
18 views

How to host 2 subdomains as lookalike destinations under one master domain?

Due to restrictions on several required plugins, we cannot use multisite (some are not multisite compatible) at this time. So we have 2 sites with e-commerce that will look essentially the same (same ...
1
vote
0answers
32 views

How to rewrite the post URL according to the category?

I have 1000 posts in my website, half of them are in difference categories and another half is in category called "blog". Current permalink structure is: http://xxxxx.com/articles/%postname% - this is ...
1
vote
0answers
26 views

How to make theme elements customizable in wordpress?

In Wordpress there's a menu option called 'Appeareances'. I want to add (e.g.) a submenu 'header' there and then be able to customize the header from within wordpress (administration page). From what ...
1
vote
0answers
24 views

Order posts with a custom field but also without

I am querying and ordering posts with this code but my theme adds the custom field (cb_vote_nb_vote) only if someone clicks the "vote" button, since I am doing a listing, posts created without that ...
1
vote
0answers
58 views

WP_Customize_Image_Control generating error when used

I'm adding some customisation controls for my theme, but I've hit a snag with the WP_Customize_Image_Control class. The control is showing, but whenever I try and upload an image I receive the ...
1
vote
0answers
41 views

Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?

After WP3.8.1 upgraded, two plugins I made for my networks both stopped working. Each runs on a separate multisite install. I posted the error report on the Wordpress form: ...
1
vote
0answers
39 views

Is it possible to visually group items on the theme customizer?

My theme customizer is getting bigger and I think from an UX perspective would be nice to visually group some similar items. Is there way to do that? Something like put a divider or playing with CSS ...
1
vote
0answers
61 views

How can I add custom meta on signup page and pass along to be used after blog activation?

I am trying to customize a signup process for our MultiSite Network I need to be able to assign levels based on a choice at signup. My thought is to add a field (hidden or otherwise) that holds the ...
1
vote
0answers
66 views

Image Editor does not affect custom sizes!

Recently working with wordpress 3.5, I came across this patch :http://core.trac.wordpress.org/ticket/19889 ...which solved the problem of custom image sizes defined by my theme not resizing or ...
1
vote
0answers
131 views

custom upload directory only for plugin uploads

i'm trying to add an upload_dir filter only for plugin-uploads. does anybody know why the code below doesn't work, and what could work instead? thanks in advance! $upload_dir = 'publications'; ...
1
vote
0answers
160 views

Rewriting single post url; add_rewrite_rule problem?

I have to customize single post permalink (the structure of the permalink) if posts have a certain value in a certain custom fields. I use the filter post_link to change permalink when needed, and ...
1
vote
0answers
322 views

Can I create my own custom Attachment Display Setting?

I'm porting a client site over to WP from an old customized .Net CMS and something their existing system does well is the site admin interface contains a simple utility for uploading media to the ...
1
vote
0answers
66 views

Getting Theme element into plugins page editor in wp admin

I'm having a hardtime integrating a theme editing element (in default page/post editor in wp-admin) into page/post editor made by the plugin BU Versions. Basicly I need this theme element to ...
1
vote
0answers
52 views

Custom column working problem

I am adding a column to manage number of post shares on twitter. I made this code: function Twits($url) { $s = ...
1
vote
0answers
36 views

How to structure model showcase

I need to make a website of models that contain the following components: Model page - model info, editorials of that particular model Editorial page - containing some editorial info, link back to ...
1
vote
0answers
159 views

Admin search post meta

I have currently built a property database using WordPress and am purely using the back-end for the whole job. I am listing all the properties and used a plugin called "Easy Filter" to add custom ...
1
vote
0answers
59 views

Advanced author permalinks

I'm trying to build permalink structure for author archives that would allow me to display different custom post types posts in 'subpages/subarchives' of author archive. So the idea is to change ...
1
vote
0answers
434 views

Skeleton Child Theme Add Icon Bar to Header Flex Grid

Skeleton Child Theme Version 1.6 WordPress Version 3.4.2 Child Theme installed on main Multisite: public_html, wp-content, themes. My CSS, PHP Coding skills = NOVICE What I've done: Using the ...
1
vote
0answers
58 views

How to build a simple nav system of custom post type categories and its posts?

I've been searching the web for a long time now, but couldn't find a solid simple anwser to, what seems to be a basic question: I have to output a list of custom post type categories and the posts of ...
1
vote
0answers
123 views

404 (category, pages, archives) when using custom rewrite rules

I'm using www.domain.com/%POSTNAME%/CAR permalink structure (CAR is the variable i need to extract. After adding the code to the functions.php the other wordpress url's stopped working (category, ...
1
vote
0answers
376 views

wp_nav_menu custom walker - child items

I have written a custom walker to integrate a jquery dropdown nav script into my wp template. I need to add .dropdown-link to each of my parent menu items and .dropdown-wrapper to the unordered list ...
1
vote
0answers
60 views

need help with existing code showing subpages

I am helping a friend make some changes to a wordpress theme. At the moment displaying subpages works only for one parent and its subpages (the one with id 31), but we want it to work for all pages ...
1
vote
0answers
697 views

Customize The Events Calendar to Include an Option to Expand for More Events Listings

I think The Events Calendar for Wordpress by Modern Tribe does a splendid job and does a lot for to turn a drab calendar into a streamlined and professional looking one. I like the ease of the ...
1
vote
0answers
65 views

URL rewrite of independent plugin?

I'm currently developing a more complex plugin for WP which can't be hooked up to the WP-API itself (Custom Post Types doesn't fit my requirements). Of course I use the API alot, because the data is ...
1
vote
0answers
352 views

Help with walker for nav

For some reason, this walker won't work when I pass in 'echo ' => 0, it always prints the nav, and never returns the nav as a var. I can't seem to figure out where it's by passing that in ...
1
vote
0answers
30 views

Create custom page and add it in nav menu by code

I am creating a plugin, and this time it should: create a page and add it to the nav menu, all by code ... Here is an example: http://img823.imageshack.us/img823/8531/09072012205520.png
1
vote
0answers
2k views

Extra User Profile Field Upload File / Image

I have been following the following tutorial to try and an upload form to the user profiles. ...
1
vote
0answers
127 views

Track usernames with piwik

I'm wondering if there is a way to send current logged username to Piwik and display it beside the ip address in the stats. I need to see which users viewed a specific page and which users downloaded ...
1
vote
0answers
531 views

GeoMashup plugin: how to customize cluster markers / icons?

Is there a way to customize the standard cluster icon marker which GeoMashup uses to display nearby posts grouped in a certain area? By default it's a red dot in V2, or a blue dot in V3. I nee to ...
0
votes
0answers
9 views

4.0 Media Uploader Customisation

Does anyone have/know of any guides or tutorials that break apart the different hooks and sections of new improved the media uploader? Specifically, I'm looking to add a new tab to between the ...
0
votes
0answers
26 views

Custom pages with plugin

I'm developing some plugin where I would like to enable custom pages. In my case some custom page would contain a form like contact form (not literally). When user will fill out this form and send it, ...
0
votes
0answers
14 views

Google map disappeared after updating to WP version 4

Few days back, I updated my wordpress website to the latest version Benny. But after that update, everything went haywire. One premium plugin went missing. Google map disappeared into thin air. ...
0
votes
0answers
8 views

List ads with a special custom meta name

Actually we have 3 blocks: New Ads / Popular Ads / Premium Ads. My question; if I would like to add a new Ad that lists all Ads with a custom meta name cp_annonceur == professionnal Could you suggest ...
0
votes
0answers
9 views

I'd like to move the Widgets Panel to the bottom of the list in Customizer

I'd prefer to have the 'new' Widgets Section/Panel (that extends to the widget areas) drop down to the bottom of list in Customizer. I've tried: $wp_customize->get_panel('widgets')->priority = ...
0
votes
0answers
16 views

How to display a custom built field on wordpress default gallery

I created a custom field for the media I can upload on my wordpress website, by adding this code to functions.php: /** * Adding a "Copyright" field to the media uploader $form_fields array */ ...
0
votes
0answers
11 views

Display the nav menu for a particular page id

Say that I have the id of a page that is in the wp_nav_menu() I would like to show the wp_nav_menu() for that particular page. Is that possible? I can use wp_get_nav_menu_items() to get all items for ...
0
votes
0answers
18 views

Restrict my pages from public

In my site I want to restrict some pages from public. How can I do this? example : www.xyz.com/members This pages only access when the user is log in but now its access public also using coping ...
0
votes
0answers
32 views

Editor/TinyMCE - change double enter key to <br /> and single enter to nothing

I have learned over the last year on Stack Overflow that people here prefer I give all details in the beginning instead of answering 12 comments worth of this stuff later. EDIT: If you don't want to ...
0
votes
0answers
16 views

Have the plugin completely render a page

I'm working on a plugin that uses pretty links by using rewrite rules like so: add_rewrite_rule( $slug . '/email/([^/]*)/?', 'index.php?pagename=' . $slug . ...
0
votes
0answers
18 views

Wordpress Create pages on theme activation - add child pages using this function

I am using this function to add new pages on theme activation: /************************************************* ** Add home page *************************************************/ if ...
0
votes
0answers
15 views

wpdb custom tables without plugin

I am using custom tables, with $wpdb, trying to perform basic queries at the moment. I can't find anything on manually creating tables then using them with $wpdb, everything is plugin related. I ...
0
votes
0answers
14 views

WP_Customize_Image_Control and selecting from library?

I am adding some theme options, one of which is an image option. $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, ...
0
votes
0answers
23 views

Show WP content on different PHP Sites

we are about to start developing a big dynamic web project (Probably on ZF2) which will have some modules&tabs to act as CMS module (displaying news, galleries, posts etc). Let's assume we have ...