Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (9)

1
vote
0answers
149 views

Woocommerce - sort by discount in dropdown menu - woocommerce_get_catalog_ordering_args [closed]

I have searched and searched for a solution for adding a "Sort by Discount" to the dropdown on the shop page in woocommerce. I need to add a calculation such as this somewhere: $percentage= ...
0
votes
1answer
73 views

Assign Custom classes to every Excerpt

I have Around 40 Excerpts on my homepage (I am using Gantry Framework) and I want to style each of these Excerpts in a different Manner. i.e Different Backgrounds, Font color For Every Excerpt. So ...
1
vote
1answer
73 views

Add 'Creator' User Meta when adding user

I am creating a custom web using WordPress. I need to get information about who has created an account/user. The meta for example created_by. So that I can retrieve who are the users that created by ...
0
votes
0answers
25 views

custom rearranged menu with excerpt for selected children in sidebar.php

I'm trying to make a custom index menu on the sidebar for an editorial multisite wordpress website. Suppose my pages are as follows: Level 1 Level 2 Level 3 Level 3 Level 2 ...
0
votes
0answers
12 views

Custom terms in custom category taxonomy

I have a Custom Post Type called 'directory'. I have a custom category taxonomy assigned to the post type called 'directories'. This custom taxonomy has several custom terms (e.g. one is 'art ...
0
votes
1answer
81 views

Date Ordered Archive Page for single category?

The code below enables an archive of posts in date order. But I can't figure out how to change this so it only pulls one category of posts. Link Any help greatly appreciated <?php //* Template ...
0
votes
1answer
20 views

Is there a way to add a function that will get run after a blog is created?

Is there a way to have a function run after a blog is created in WP MU? I think I would need to add a filter or something but I'm not as familiar with the procedure. Do I set something up like this: ...
0
votes
2answers
163 views

How to deal with multiple select options using register_setting() theme options

I'm using Ian Stewart's Sample Theme Options for a lightweight Theme Options panel. INSERTION FAILED I need to insert Multiple categories into db, where I used the following code: <select ...
0
votes
0answers
47 views

Custom header content within a customer page template

I built a custom page template and everything is working swimmingly. I have a problem however making it so each custom page using the template can insert custom code into the header area. If you ...
0
votes
1answer
103 views

Widgets not showing in my custom theme

I am developing this WordPress custom theme: http://onofri.org/WP_BootStrap and I am trying to insert a widget area under the Partner e Sostenitori section, but can't work. I have performed the ...
0
votes
1answer
35 views

how to register / add multiple options into one field in wordpress?

How can I register or add multiple options into one field. For example, we save a logo in get_options() by registering the setting and adding fields by add_settings_field() function and we output it ...
0
votes
1answer
21 views

Custom Same Page Search

I've added a custom form to one of my page templates. It submits to itself $_SERVER['REQUEST_URI'] in hopes I can grab the $_GET values and modify my query using pre_get_posts, but instead it goes to ...
2
votes
1answer
56 views

Removing My Sites menu from Admin

I am trying to find a solution to remove the "My Sites" menu that comes under the Dashboard section of a multi-site install. Any ideas on which hook to use?
0
votes
0answers
78 views

Custom options - register, defaults and delete empty fields (Settings API)

I cant figure out how to register all of my setting fields into 1 database option. Code for my menu page: add_menu_page('Custom options', 'Custom Options', 'manage_options', 'rm_options', ...
0
votes
1answer
25 views

loginout function customization

I want to make login / logout function inside my header to display when the user is logged in Logged in as,{user name} where {user name} should be wrapped inside an anchor tag with a custom permalink ...
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
0answers
81 views

Cannot modify a registered custom post type rewrite slug

I'm using this function in my child theme to modify the rewrite slug from custom post type that was registered on the parent theme. But it doesn't work. function change_rewrite_rules() { global ...
0
votes
0answers
64 views

How to redirect users to their profile after they successfully edit their profile

I am using the buddypress plugin for wordpress and would like to make a little change... I was wondering, if there was a way I could redirect users to their profile page after they save the edits to ...
0
votes
0answers
28 views

how to customize WP 3.8 themes.php screen

I've been digging around on Google and looking at themes.php for clues - but I've drawn a blank. I'd like to customize the themes.php screen via a plugin in 2 relatively simple ways for a device ...
1
vote
2answers
62 views

How to place HTML below the title of the (custom) post overview

Edit: Yes, I know, I provided an answer to this question myself. However, I'm still interested in other solutions and/or comments on the one I found. Is this how you would do this? Are there any other ...
0
votes
1answer
57 views

Display all post types together

I'm looking to use Custom Post Types to create a simplified process for key individuals to add information to a webpage. Let's use a Job Posting as an example, with custom fields for Job Title, ...
0
votes
0answers
80 views

Customize TinyMCE Buttons

I've always used the plugin TinyMCE Advance that lets me drag and drop which buttons I want to show in the Editor. Now I'm trying to set those using my functions.php instead. That way I never have to ...
3
votes
1answer
51 views

How to not allow custom roles to edit published custom post types?

I have a WP site with a custom role (revisor) and a custom post type (events). What I would like to do is allow my revisors to add new events, but not edit existing. I'm already using the Members ...
0
votes
0answers
22 views

Apply `the_content' filter to theme customisation live preview

I'm using 'transport' => 'postMessage' to update the text within the footer area during theme customisation live preview. My problem is that on my website, the corresponding theme setting ...
1
vote
0answers
52 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 ...
0
votes
0answers
39 views

What hook to use for loading a custom class extension during Theme initialization?

I'm trying to organize some things in my custom theme, and so I'm using require to load in some custom classes I've created that implement native WordPress classes. When I code the class right into ...
1
vote
1answer
37 views

Ability to only view (not edit) other user's personal profile information

I have created 2 roles, Center and Student, for my WordPress website with different capabilities using members plugin. I want the student role users to be only able to view and edit their personal ...
0
votes
0answers
28 views

Overwriting a theme function with a plugin [duplicate]

This is a two parts problem. 1) I want to replace the custom post type with custom taxonomy term on my permalink. By default my URL structure is: http://example.com/holiday/remote-brazil holiday = ...
2
votes
0answers
18 views

Migration from Squarespace to WordPress: Remove leading 0 from %monthnum% in permalinks [duplicate]

I need my WP permalinks display months without using any zeros in the URL i.e. /1/ instead of /01/ for January. I'm moving my blog from Squarespace to Wordpress and I obviously want to keep all my ...
0
votes
0answers
55 views

Custom post type archive with taxonomy

Hmm OK, I'll try to be as clear as possible. I have a CPT named "custom_type" with the args (one of many) rewrite('slug' => 'space') and has_archive => 'spaces'. My first question. When calling ...
0
votes
0answers
24 views

Custom search function not finding posts with tax terms even thought the association exists

I have a custom hierarchical taxonomy called "destination_category" with terms like so: Cultural Museum Historic I have a custom post type with posts associated with all three "Cultural" ...
0
votes
3answers
262 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
86 views

Custom fields are not displaying in page with multiple loops

I have multiple loops on my home page. I am trying to display custom fields in each loop. But some of them are not showing. Any idea, why? Here is the code: //check for Featured Events here ...
1
vote
0answers
35 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: ...
0
votes
2answers
46 views

Get data from custom post type to another custom post type?

I'am wondering if i can do this: I have a Custom post type with named Staff, there you can create/add your staff. Then I have another Custom post type called Projects. When I add a new project i ...
0
votes
0answers
24 views

Custom Login page

we have some member sites which have member blogs in it. member site is in .Net (different domain)and blogs are in Wordpress. we need to put blogs behind the login screen of member site. It means when ...
0
votes
1answer
63 views

Wordpress theme Modifications not showing up on live server

I have been working on localhost with a theme that was already installed on live server. After i completed my mods, uploaded the files to themes folder in wp-content but to my disappointment, the same ...
1
vote
0answers
38 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
votes
1answer
10 views

How do I fix the url when clicking on portfolio item?

Right now I'm working on the portfolio section of this website, and I noticed that whenever I click on a work, it adds a # followed by the whole URL of what I want. For example, it goes from ...
0
votes
1answer
413 views

Load post content into iframe

I would like to load a Wordpress post into an iframe when a link on a wordpress page is clicked. This is the link I currently have. <a href="' . get_post_permalink($sight->ID) . '" ...
0
votes
0answers
81 views

Invalid post type admin

I've added some custom post types, but for some reason I keep getting this message: 'Invalid post type' whenever i try to search a post in the backend or when I try to do a bulk action. Hope someone ...
0
votes
1answer
47 views

Set terms in a custom post

I have a custom post "artist" and a taxonomy/category "artist category", and i want to create (by development) a new post and set the category of the artist but it doesn't work. I have tested it with ...
0
votes
0answers
18 views

Include a php page with parameters in a Wordpress site? [duplicate]

I'm running a homemade website which mostly contains photos and text, but also has a specific page with a dynamic list through a small form. You can list data and add data with a small form. ...
0
votes
1answer
31 views

Template setting is not saving in wordpress

I'm using a child theme. I want to override a template of base theme. I created, articles-page.php which starts with: <?php /* Template Name: Articles */ While creating a page in Wordpress I can ...
0
votes
0answers
51 views

Users Can Only Post Reviews When Logged In?

I use the plugin WP Customer Reviews on my site but to leave a review you must fill out a form even if you are logged in. I would like to make it so that if a non logged in user goes to submit a ...
7
votes
1answer
180 views

Multiple Inputs in a Customizer Control

Say I have a single custom control, but this control has 2 inputs that require saving, e.g.: Currency type and value Size and unit of measurement First and last name Text and style Image and image ...
0
votes
0answers
57 views

WP No Base Permalink only works with logged user (admin)

(My apologies for my poor English, I'm french) I just want to have a shorty URL for all page of my WP Site: www.example.com/wordpress-answers-is-a-good-site for my posts insteads of ...
0
votes
0answers
66 views

Problem with the loop?

I'm customizing my Twenty Twelve theme to show a single posts from two separate categories on my home page using a custom template. Here's my code : <div> <?php $catquery = new ...
0
votes
1answer
29 views

How to remove custom fields from the selector?

I want to remove some of those: So the user doesn't use them by mistake, Any idea howto? ( maybe looking into the wp database? )
0
votes
1answer
13 views

How to stop displaying the Id without losing the functionality

I am using a custom code to make certain plugin's functionality available only with particular capabilities. Here is the code: <?php // Check if User can Edit // Set permission to false = 'not ...