Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (10)

3
votes
3answers
336 views

Localization For Two Different Regions/Domains with the Same Language

I have a site which is based in US (ex. www.example.com). We've been tasked to create a UK/GB version of the site which has it's own domain (ex. www.example.co.uk), but shares the same common ...
1
vote
1answer
961 views

Adding Pagination on a Custom Author Page

i have created a custom author's page that list the title of their posts. but the problem is i can't get the pagination to work if it's beyond the set post per page value. i have used get_posts() to ...
2
votes
1answer
376 views

Show Custom Taxonomy Slug(s)?

can anyone help me with this? I need to print the slug of my custom taxonomy, can this be done? The following kind of works but it just shows the name, rather than the slug which i need for a class ...
0
votes
1answer
84 views

accessing monthly archive from dashboard

I've been posting to my wordpress site the same way forever, not really knowing much about what I'm doing. It all seems easy. Recently I've started playing with the site and trying to access parts of ...
1
vote
1answer
1k views

Define new user capability for custom post types?

If I create a custom post type and want to create custom capabilities for that, how do I do this? For example, I want to let my Editors to edit and create and delete posts and pages, but not the ...
1
vote
2answers
2k views

Storing Custom Post Type Data in a Custom Table

I am working on a custom job board for a client that wants to deploy this job board on a multi-site network. Here is my problem, I need to store certain jobs in a table that would be accessible to all ...
0
votes
1answer
492 views

Customizing the gallery of the post correctly

I've found a way to insert a customized gallery inside my wordpress template but I'm not sure this is the better way. I've uploaded my images with the default image uploader of wordpress to manage ...
0
votes
1answer
562 views

How to use multiple check-box values to work in a function and insert values in database

I am working on a custom theme where there is option to upload images . I have certain check-boxes in the form which the users select as per where the image has to go. My form code is as follows : ...
1
vote
1answer
526 views

Using custom post template

i'm trying to implement a custom post template for all posts filed under a specific category. I'm making use of WP-O-Matic plugin that puts in the RSS feeds in this category and would like to make a ...
0
votes
2answers
393 views

How do I “trash” a custom post type post while logged in as Admin

I am using the members plugin and have a custom post type of "listing" When I navigate to listings in the backend, I can edit. quickedit, and view. There is no option to trash. I am logged in as ...
0
votes
1answer
376 views

Exclude current post but keep the same posts-per_page amount

Okay I have a custom loop within the main loop of the page that shows 4 posts but obviously excludes the current main post. I'll show you: <?php $my_query = new WP_Query( ...
8
votes
2answers
942 views

How to add plugin to WordPress Repository?

I just made my first plugin and it got approved by WordPress. Great news for me, but now what? The "instructions" on the Codex are anything but clear for me. I did find an article on Dig WP and I ...
1
vote
2answers
422 views

How to post twitter like updates on wordpress

Is there a plugin or a hack such that I can make short updates similar to twitter's on my own wordpress blog? Perhaps making use of a custom post type or something on those lines? What i'm trying to ...
2
votes
1answer
2k views

Custom function for user register in wp?

I have a custom template for user registration. I want to use a function to insert users. Can I directly call wp_insert_user() function?
2
votes
1answer
1k views

Extend the wp_get_archives output with '?post_type=foo'?

I've gotten my custom post types to display as it should in date based archives; the structure example.com/year/month/day (and above) works properly as long as it's extended with ...
18
votes
1answer
8k views

how to filter post listing (in WP dashboard posts listing) using a custom field (search functionality) ?

despite the fact I googled a lot, I've not found the answer to a very simple question : I have some posts with a custom field (ie supplier_name). I would like to be able to search and filter my posts ...
0
votes
2answers
154 views

custom post-type query just returns two posts

I'm making a custom activity calendar for a client here: http://arbeidshesten.com/aktivitetskalender/ The backend is a custom post type "aktiviteter", with custom fields for the date ("dato") and ...
4
votes
6answers
7k views

Custom order of terms for custom taxonomy in admin and website

I have a custom taxonomy registered for my custom post type. I need to make it possible for a user to specify the order in which the taxonomy terms should appear (something like menu order for pages). ...
2
votes
2answers
102 views

Should I use Custom Post Types or something else

In my new custom theme I want my user to be able to add a 'customer testimony'. All I need for each entry is a plain text area for the content of the testimony and a text input for the author of the ...
0
votes
1answer
379 views

How Can I Always Display A Particular Post First Using WP_Query?

My apologies if this question has already been asked somewhere else, I searched but couldn't find anything. I am working on a tours website, there will be individual package pages that show some text, ...
2
votes
1answer
1k views

How to remove row-actions from pages table?

I've already found out here how to remove the row-actions from the posts table in wordpress admin. Now I'd like to do the same in the pages table. I've looked in the core files but, well, I just don't ...
4
votes
1answer
3k views

Linking Two Post Types

and thanks in advance for your help. I've done some searching, and this question has been answered a couple of times with reference to the "posts 2 posts" plugin, but the documentation on that is ...
0
votes
1answer
107 views

After creating a new page, filling the page with structure

I looked 2 days now but I couldn't figure out how this is done: I created a new page in wordpress. This is easy. Then I see, that I can put content into the page. This is easy too. But how can I ...
1
vote
2answers
3k views

wordpress custom walker for thumbnails with custom menu

I'm still very novice at PHP so any help is greatly appreciated. Typically I have found the codex to be very helpful but it appears custom walkers may be outside its scope. I'd like to have ...
0
votes
1answer
998 views

Wordpress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page

Hey everyone. I'm not sure if what I'm experiencing is a result of a bug (due to the recent upgrade to 3.1.2) or poor coding. Ever since i upgraded to version 3.1.2 ive been experiencing a problem ...
0
votes
1answer
261 views

How can I combine this php statement to get the results of multiple variable inputs?

This is my query, it shows the posts that have meta_key as extra1 and meta_value as test <?php $customkey1 = 'extra1'; ?> <?php $customvalue1 = 'test'; ?> <?php query_posts('meta_key=' ...
6
votes
2answers
850 views

Looking for a Table of Contents (TOC) plugin for WordPress

I am looking for a simple TOC plugin for WordPress that would create a ToC similar to the one from MediaWiki (Wikipedia). Usually I need this only for big pages and the TOC needs to be generated based ...
0
votes
2answers
148 views

Display a specified content on a Page and all its child pages

I have a website with 5 main pages (consider them as sections), then 3-5 sub pages for each of them. I would like to display a flash banner for each section, i.e. it should display the flash banner on ...
1
vote
1answer
70 views

Determining What Content Gets Displayed

I'm looking into using Wordpress as a basic content management system. I'm quite confused about what determines what content gets displayed when and where. For a simple example, I installed a theme ...
2
votes
1answer
146 views

Is it possible to have two different previews of a post (ie. two templates for one post)?

I'm looking for a way to allow post editors to see two different previews of the posts they are writing. On the front, the same post can appear it two different sections of the website (each shows a ...
0
votes
1answer
444 views

Custom post type functions.php if statement on action

I am using developing a child theme for Woothemes' Canvas. I am trying to use functions.php in the child theme to only use actions on my custom post type. This code doesn't seem to be working: ...
-1
votes
3answers
693 views

Slideshow/Gallery plugin based on WP Core Gallery [closed]

Looking for a plugin that I can hardcode into my custom post type template that pulls the images from gallery images added into the standard WP gallery. Thoughts?
0
votes
1answer
137 views

How-to inspect filter-able $vars?

Note: This is more of a tutorial/wiki than a real question and should be a reference for later Questions. If you got something to add, please feel free to add an answer. Working answers get upvoted. ...
0
votes
1answer
187 views

Adding Theme File for Non-Wordpress Content

I have a third party events plugin that uses custom tables in the database. I have created a theme file (event.php) that pulls the data in based on a slug that is ideally given in the URL. I want to ...
0
votes
1answer
95 views

Number of posts in the archive

How do I show 10 posts on the first page of the archive, and 20 on others (>1)? My custom post type name is "apartments". Cheers!
1
vote
2answers
3k views

Multiple Domain Names - One WP Install (non-Multisite) - Default Each Domain name to Category Archive

Use case is somewhat simple - here goes: Five people share a single wordpress install - not multi-user Each person blogs and puts their posts in a their own unique category Each person has their ...
0
votes
1answer
640 views

Custom post type and body_class: Remove “blog” class

I am using body_class(); to style different sections of a wordpress site by their body class. Page styles descend from .page-template, blog styles descend from .single-post and/or .blog etc. I have ...
1
vote
1answer
1k views

How to make condition, based on custom fields value?

So what i would like to do is order in some CSS depending on the value of a custom field. The code below just says that if there is ANY value, do X, else do nothing... <?php ...
-1
votes
2answers
134 views

Developing Themes on WordPress, Looking for Excellent Tutorials

I am a beginner at WordPress. I know html, asp, a little PHP and I'm familiar with WordPress. I want to be an WordPress expert. So far I know WordPress involves designing themes, making plugins and ...
0
votes
1answer
621 views

How to display this meta data (an array) in form of a function (created with a custom write panel)?

I'm using the following code to create custom write panels: <?php $key = "project"; $meta_boxes = array( "project_services" => array( "name" => "project_services", ...
2
votes
1answer
2k views

Remove admin menu, admin header and admin footer for authors

I would like to remove everything except the “form” in wp-admin/post.php I would like to do this for user role "author" only. The reason for all this: I want the wp-admin/post.php to be a page where ...
1
vote
3answers
227 views

User Roles Not Sticking

I have added a custom user role of super_poster, basically they make 20 posts and once they hit $postlimit get auto-moved back down to contributer level, the moving down and post counting works ok, my ...
2
votes
3answers
731 views

Custom comment type maybe?

(First of all, sorry for bad english) If there are people here using wordpress as cms, you probably realize that you dont need comment system that much. Esspecially custom post types like products ...
2
votes
1answer
1k views

How to import custom data via XML, CSV, etc

We have about 10 years of custom blog-style, databased content that we want to import into a clean install of Wordpress. There doesn't seem to be an importer plugin that works with custom databsed ...
0
votes
1answer
414 views

Background image in login showing in admin area

I have customized my login screen with a logo using html{background:#E2DEAF url(.../images/login_logo.jpg) center top no-repeat;} because it is so wide. Usually would not tie something to the HTML ...
1
vote
1answer
1k views

How to select posts from multiple categories and metavalues?

I need to select posts who are in multiple categories and have certain post metavalue. I can select multiple categories with query_posts( array( 'category__and' => array(1,2,3) ) ); But also I ...
0
votes
3answers
93 views

Should we localize custom-made themes / plugins?

Does anyone know how much do the localization functions from WordPress affect the speed of a website? Do you think it's worth replacing all strings with gettext inside a theme, even if it will only ...
3
votes
2answers
3k views

How to delete outdated, wrongly sized images in _wp_attachment_metadata?

I've got several custom image sizes for my blog. One of these is setup as add_image_size( 'slide', 640, 290, true );. These are used in a header slideshow. My problem is I've upped the dimensions of ...
0
votes
1answer
427 views

Force modified contributor role to be re-approved on edit?

I gave the Contributor role edit_published_posts capability. Contributor submits a post, Admin publishes it. Now Contributor can edit it without approval. Is there a way to force it to be re-approved ...
10
votes
4answers
182 views

What do you think about custom designed plugin/theme options UIs?

You probably noticed the trend of making custom designed plugin/theme options UIs, especially in the commercial ones (on CodeCanyon for example - custom boxes, tabs, accordions etc). I personally ...