Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (9)

2
votes
2answers
8k views

Setting Custom Sort Order of Posts within a Category

I've got this category setup that includes several posts. By design it's not a blog, but a staff listing. Currently all of the staff members have their own posts with the category. I'd like to be able ...
2
votes
1answer
408 views

How to get a nofication when post submitted

I was wondering is there a way to send the admin a notification (email or otherwise) whenever a user submits a post. Currently, I have to log into the admin section to see if there was anything ...
2
votes
1answer
606 views

get_post_meta in sitewide tags plugin fails to return value for custom fields

Here's another conundrum that I'm toying with. There's a routine within the sitewide tags pages plugin which takes a list of custom fields (entered in the admin settings) and then uses these as keys ...
2
votes
2answers
615 views

Organizing by super-categories (or nested categories)?

Suppose I want to blog about three somewhat unrelated main topics: Money, Languages, and Information-Technology on the same blog. How should I organize things for the best user experience? How does ...
1
vote
3answers
990 views

How to remove admin menu pages inserted by plugins?

I've got the following code, which cleans up a lot of stuff that is not going to be used within the admin area: add_action( 'admin_menu', 'my_remove_menu_pages' ); function my_remove_menu_pages() { ...
1
vote
1answer
1k views

Creating search form for custom database table

I have a custom table in the WP database which I can display fine, with pagination, using the following code: <?php global $wpdb; $rows_per_page = 50; $current = (intval(get_query_var('paged'))) ...
1
vote
1answer
2k views

Modify search function in WordPress (TwentyTwelve)

I want to remove "Search for" text from search form in TwentyTwelve, to wrap in in a div for styling, and probably to play with php a bit – and I'd appreciate some advice on how to do that best. My ...
1
vote
1answer
238 views

How to Create a Custom Panel and Fields in Post Page [Plugin]

I would like to write a custom plugin that adds a custom panel below the post compose panel that will have a few fields and a submit button. JS will kick-in to submit content to the database, without ...
1
vote
2answers
2k views

Delete Post Link to delete post, its meta and attachments

I used // Delete Post Link function wp_delete_post_link($link = 'Delete This', $before = '', $after = '', $title="Move this item to the Trash", $cssClass="") { global $post; if ( ...
1
vote
1answer
308 views

[Plugin: Posts 2 Posts] Changing display order of connections

Can I change the order in which connections are displayed ? If I create say three connections and then display them at the bottom of my article, I will get them in reverse order. How can I change ...
1
vote
1answer
915 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 ...
1
vote
1answer
182 views

How To Modify New Sub Blog Immediately When Super Administrator Creates It?

I want to trigger a function in a plugin when a new sub-blog is created in a multisite set up of WordPress. Is it possible? If so, to which action/filter should I hook? The motivation here is to ...
1
vote
2answers
2k views

Select category in custom query

I'm sure this question is asked alot, but I cannot figure it out, since all the different ways to query posts are confusing me.. Here is my current code. How can I tell the code to only get posts ...
1
vote
2answers
913 views

Creating a searchable A-Z listing of hundreds of companies/services

I am about to create a webbased guide. A guide that will list numerous of companies - their services, contact information and so on. And I need help coding this! I am using Genesis News Child Theme ...
1
vote
2answers
224 views

Is there possibility to Customize the present theme adding sidebars

I am using a WordPress theme which has just header and footer. I would like to continue using it by changing the width and adding side bars. Could anyone help me to change the width (to fit to the ...
0
votes
3answers
20 views

How to redirect the home page to a custom page?

I had a WordPress site which was moved to a directory called "test". Now, all the urls for the wordpress site is domain.com/test, /test/wp-admin. The main index page is a custom html page for ...
0
votes
2answers
129 views

Pagination not working on Custom Page Template

I searched a lot on this but I can't figure out why my code is not working. I published a page with slug "blog" that uses a custom built template "page-blog.php" that I build from editing the ...
0
votes
1answer
24 views

Show One Category on Post

How do i go about making the code only show one category? <?php $categories = get_the_category(); foreach($categories as $key => $category) { $url = ...
0
votes
2answers
33 views

Database custom table issues - incorrect result displayed

First things first: I've spent most of today going over these forums; the stackoverflow forums; the php.net manual; and a bunch of random sites I found through Google Search - so, if I've missed the ...
0
votes
0answers
23 views

Separation of view and logic

I find that very easily my views become cluttered with logic, e.g. null checks, email validation, and retrieving values from the post object. How would you separate this out in Wordpress? Is there any ...
0
votes
1answer
145 views

Rearrange elements outputted by comment_form()

I'm currently developing a custom theme from scratch. In the past week, I've been trying to change the order of the HTML elements output by the comment_form(). I basically don't know any PHP, and I ...
0
votes
1answer
49 views

Themes VS Plugins [duplicate]

If I am customizing a WordPress site, should I do that via a theme or a plugin? By customization I mean: Add new custom post type Add new fields to the Users Add new widgets Add custom permalinks ...
0
votes
3answers
259 views

Removing Image Sizes for Custom Post Type

I'm trying to go about this without the use of a plugin, but actions and filters Is there a way to remove extra image sizes generated by WordPress based on the Custom Post Type? I've been trying to ...
0
votes
1answer
65 views

Display posts in random post types

I am currently working in a project in wordpress. Here i have to get all posts from two custom post types namely pt1, pt2. But here i want to display posts with random post type(pt1, pt2). Example) ...
0
votes
1answer
60 views

Assigning a role to a specific custom post type (and ignoring other post types)

I have a new post type called "story" And a new role called 'Writer' (w/ a 'publish_story' capability) I want it so that, a Writer when logged in can edit Profile and only edit a custom post type - ...
0
votes
1answer
54 views

Multiple taxonomies & terms (no hyperlinking) in 1 function [duplicate]

I am trying to make a function but (because the lack of my knowledge) can't figur out how to do. The codex shows an example for using 1 taxonomy and 1 term and as output nice showing 1 Taxonomy / 1 ...
0
votes
3answers
207 views

Custom Loop Pagination on WordPress

I'm trying to create a magazine style website. For this particular page (not homepage) I'd like to fetch the latest post and style it one way (style1). For all the other posts I'd like to just display ...
0
votes
1answer
1k views

How to add a new product type on woocommerce product types? [closed]

I want to add a new custom "product type" to woocommerce plugin: Tried to duplicate one of currently exist product type files (woocommerce template structure) as a new file (file name and inside ...
0
votes
0answers
84 views

Option Framework - How to allow the user customize theme on frontend?

I'm using option framework and I can follow the instruction here to add my option on the Theme Customizer http://wptheming.com/2012/07/options-framework-theme-customizer/ However, it can be accessed ...
0
votes
2answers
89 views

Print shortcode in custom action hook not where the shortcode is entered

I have added a custom action hook into my theme. I want to be able to enter a shortcode anywhere in the_content() and have the shortcode print were the custom action hook is rather then the point from ...
0
votes
0answers
379 views

get_theme_mod(); returns nothing

I am having trouble with my customize field in WordPress. The field shows up fine in the customize section of WP but it just does not echo out. <p> <?php echo ...
0
votes
1answer
93 views

Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin - Adding to “Thoughts” Theme

How do I enable infinite scroll (either with the infinite-scroll plugin OR the built in infinite scroll jetpack) on the "Thoughts" Wordpress theme? I'm a total noob at editing this stuff so if you ...
0
votes
1answer
434 views

List posts based on First letter of Posts

I want add a Pagination [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] .......[Z] Easy Post Title - By Admin on 2013 post content....bla bla bla... Example Post - Another Test ...
0
votes
1answer
304 views

How can I remove categories in menu in custom post type?

I'm creating a custom post type and have added categories taxanomy. This can be done in two ways: // In $args array 'taxonomies' => array('category'), // or calling a function ...
0
votes
0answers
22 views

list posts of a person by a variable?

Basically I have some portfolio code that runs user bio pages in my site. here is the link Entechpc.com Meet Our Agents . When you click on an agents image, it takes you to his bio which is really ...
0
votes
1answer
56 views

How can I manage my multiple wordpress websites from main website?

Can this solution be used for multiple WP installations on the same site? For example, I have multiple blogs (multiple subdirectories), i.e. mysite.com/blog1, mysite.com/blog2, mysite.com/blog3, etc. ...
0
votes
1answer
65 views

Change loop order via form or link (jquery, not URL)

I would like to change the loop order via a link or form input, but it can`t load via URL, because i need to orderby=meta-value and this cannot be done via url args (acording the codex) , only like ...
0
votes
0answers
61 views

Add Custom Post Type Categories to General Categories

I've created three custom post types. I want them seen as general categories. I could not find a solution, can anybody help me? Thank you.
0
votes
1answer
479 views

add sidebar area to header of child theme

How can I add some extra sidebar locations for widgets in a child theme. The difficulty I'm having is because the parent theme uses some pretty gnarly setup to define the current sidebars. I would ...
0
votes
2answers
1k views

Gravity Forms - Repeatable “File Upload” field using “gform_column_input_content” filter

I am looking to use the gform_column_input_content filter to make a repeatable file upload element. The filter modifies the HTML content of the list field column input tag. The following code ...
0
votes
3answers
3k views

How can I disable parent menu item links?

I don't want to have the parent menu items of my site's nav menus linking to a separate page. For one thing I don't want to have a superfluous page. For another these links hobble site navigation for ...
0
votes
2answers
467 views

Meta Box Plugin Cloned Fields - Multiple Foreach values

I have the following code that I can't get working. I have two cloneable fields that are being output as one entity (URL and thumbnail image). These are cloned fields using the Meta Box Plugin by ...
0
votes
1answer
127 views

Redirect members to custom page upon logging in through WP admin

When a members logs in through WP admin, I would like to redirect them instantly to a custom URL. What will I need to change to make this possible? Respond with step-by-step details would be ideal.
0
votes
1answer
101 views

Take excerpt of the content of the post and send it as the title to create new post

Explaining my goal: I would create the title by taking the first words of the post content. Ex: In the Admin interface would be the title field blank and the first 10 words of content would be sent as ...
0
votes
1answer
570 views

How to create different menu's for not logged in visitors and for logged in members?

I'm creating a website which will provide services to members and I want to make it so that when a not logged in person comes to the website the menu is specifically designed for sales pages to make ...
0
votes
1answer
222 views

Custom Queries - Child Categories not showing up

What I'm Doing I have a cities category and normal categories. Right now I have them filtering by category, then when the user clicks a city it will filter by category AND city query_posts(array( ...
0
votes
1answer
198 views

Query post types with multiple keys

I'm looking for a way to only show posts results that contain all of the custom fields requested. Not one or the other. I was only able to get results with one array at a time. Any help would be ...
0
votes
1answer
858 views

saving custom post type data to different table in wordpress

As the title says, is there any option to save the data in different table in wordpress. I have around 10000+ data in my site in a different table. I have moved this table inside wordpress database ...
0
votes
3answers
92 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 ...
0
votes
1answer
5k views

How can I customize “Pages” admin (edit.php) and “Edit Page” admin (post.php) for bulk edit of custom content type?

I think its probably easier than I think to do this, but currently its beyond me. If there are any plugins out there I'd prefer to start there rather than develop from scratch, but I'll do what I have ...