Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (9)

0
votes
1answer
26 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
19 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 ...
1
vote
1answer
32 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
54 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
21 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
33 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
47 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
30 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
26 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
60 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
47 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
48 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
35 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
14 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
41 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
29 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
30 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
27 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
32 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
18 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
134 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
51 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
19 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
40 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
23 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
40 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
32 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
7 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
157 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
63 views

Add link to Shopping Cart on Woocommerce's Checkout page

My question is a simple one, I think. I want to place a link or button on the Woocommerce Checkout page saying "Return to My Cart" (obviously linking to the cart page) but I want it placed just after ...
0
votes
0answers
49 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
34 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
28 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
47 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 ...
5
votes
1answer
118 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
46 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
61 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
28 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 ...
0
votes
2answers
26 views

Is there a way to create a meta box that can be added multiple times to a post dynamically?

This shouldn't be that difficult (I wouldn't think) ... I just want to have a section of my theme (directors) that has the name of the director / their bio in the title and post respectively (done). ...
0
votes
1answer
28 views

if is_bbPress register jquery

i use this code to deregister jquery from wp_head(): <?php if ( !is_admin() ) wp_deregister_script('jquery'); wp_head(); ?> i want jquery just added when user on bbpress page, but it's not ...
0
votes
1answer
60 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
45 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
2answers
25 views

Apply custom category template to subcategories

Hello on my wordpress site I have a custom template for category A with slug (cat-a). I created a category-cat-a.php file to give this category a custom layout and this works without a problem. I am ...
0
votes
1answer
134 views

Alternatives to handle customizer settings

My theme JBST (https://github.com/bassjobsen/jamedo-bootstrap-start-theme) makes use of https://codex.wordpress.org/Theme_Customization_API. I need possibility to add some default settings to the ...
0
votes
1answer
60 views

Make next post button link to random post

The normal behavior of this code is move to next post in order by id. Need to change this ascendent order to go instead to a random post (published). <div class="navigation"> <?php ...
2
votes
2answers
37 views

How to list all record from one custom taxonomy start with only one letter i.e A

I want to list all records in one custom taxonomy start with only A or B. Below code is to list all record with all letters. Here is the code to list all record with one custom taxonomy with all ...
1
vote
0answers
24 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(){ ...