Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (14)

0
votes
0answers
25 views

Why, when it comes to custom background and image, does 'The first value registered' win?

I'm messing about with overriding parent themes by child themes. The parent theme registers custom backgrounds by hooking add_theme_support('custom-background',$args) to after_setup_theme. Now, if I ...
0
votes
2answers
45 views

How to auto add nofollow to links in custom field?

I have a custom field that contains links in them and I want to auto add nofollow to those links in that custom field only. How can I do this? Example custom field value: <a ...
0
votes
0answers
30 views

How to broadcast a post into different websites at a time from a single website

I have 3 wordpress websites that are large and complex that advertise puppies for sale. I want to post a litter of puppies on 1 site and have it automatically post to my other wordpress site As long ...
0
votes
1answer
129 views

generate unique number when registering a user

I know there are userID, username in the database, but I want a formatted and unique number for physical world use. For example: "2014xxxx" 201414:year,xxxx:generate randomly when registering a user. ...
0
votes
0answers
64 views

Class .current-menu-item in custom menu Walker

I'm building a blog using a custom walker for my submenu which looks like this: class Submenu_Walker extends Walker_Nav_Menu { function start_el ( &$output, $item, $depth = 0, $args = ...
0
votes
1answer
29 views

Renaming wp_content problem

I am setting wordpress in a custom way and having issues with renaming wp-content. Here are the details: I am using Amazon AWS as my environment. The default web root is /var/www/html/. Within that ...
0
votes
1answer
27 views

Create a google friendly header with text and logo

I want to customize my current header in wordpress and include a logo in it. The following solution works: <header class="site-header"> <div class="wrap"> <a ...
0
votes
1answer
49 views

Create theme for mobile phones and tablets only?

I've been checking the docs but I only found a way to use different style sheet for phones and tablets. Is there a way to create another different theme only for mobile phones and tablets? And I'm ...
0
votes
1answer
19 views

Disallow “contributors” to edit their own posts once they've been set to “Pending Review”

My question is exactly what is in the title: how can I disallow "contributors" to edit their own posts once they've been set to "Pending Review"? I can't seem to find any documentation on how to do ...
0
votes
1answer
46 views

Change “empty trash” button text?

I was able to find information on how to change the edit views text but so far I've come up empty with changing the text of the "empty trash" button. I'd like to change it for my task management CPT ...
0
votes
1answer
19 views

Add several fields from different tables to post, fields per post are in same row of table

I like to add 4 or 5 extra fillout boxes to the adminpage of my post... For example, under the actual page box, I would like to add the following fields: Name position publications freetext Here ...
0
votes
1answer
32 views

Deep customization of wp-login.php

I'm developing an intranet platform (so no external web access) and using the Password only login plugin. I need to make a deep customization to the wp-login.php page: the plugin i linked allows ...
0
votes
1answer
18 views

Allow arbitrary text after page URL

I'm trying to add a page that is able to display different information from a database based on the URL. http://example.com/page/ retrieves the page. I want ...
0
votes
0answers
38 views

Custom function to add a secondary logo

I'm looking to create a custom function in order to be able to change/load a new image from the "customize" panel (this because I won't be the one who manage the website, so I'm trying to made things ...
0
votes
0answers
32 views

Customizer API way function is_customize_preview() works only in main page?

Dear wordpress developer, Thanks for create incredible API like Customizer :) but I have little problem. In customizer preview view function: is_customize_preview() when I'm in home page return true ...
0
votes
0answers
25 views

page.php is not called when I load a Page

page.php is not called when I load a Page from my theme. However if I switch to the default wp theme and reload the page (not post), then only my header and footer are displayed. I added some text ...
0
votes
1answer
132 views

Unable to display custom fields on WooCommerce product pages

I've set up some custom fields using the existing 'custom fields' panel on a WooCommerce product page. I'm unable to display these on the front end. My technical knowledge is limited but I've tried ...
1
vote
1answer
35 views

How could I change my Permalink from blog to custom structure? [closed]

When I install multi wordpress site I have a problem that my default site permalink goes to http://site.myurl.com/blog/post-name/ I want to change it so that it goes to a custom link like this: ...
0
votes
1answer
125 views

Changing a setting in the wp-admin/customize.php reverts CSS styles to parent theme [closed]

I have a child theme built ontop of the Cherry Framework theme. Whenever an admin user goes to wp-admin/customize.php and changes the slider, the CSS gets completely destroyed and needs to be backed ...
0
votes
0answers
47 views

Replacing Gallery Shortcode with Foundation's Clearing

Using wordpress 4.1 and Foundation 5, and attempting to replace the stock gallery shortcode with foundation's clearing. In debugging mode, I get a notice of: Strict Standards: ...
0
votes
0answers
81 views

update_user_meta not working

I'm trying to add additional profile pages and then allow users to submit custom profile data through the pages. I want this data to be unique to each user and only viewable by that user. The code is ...
0
votes
0answers
60 views

Override A Plugin Variable And Function Via Functions.php

Is it possible to override a variable in a plugin function without altering the plugin? The closest thread I found to answer this problem is this one : Pass A Value From Outside To A Plugin Variable ...
0
votes
0answers
113 views

Customizer API and add_panel(). Panel doesn't show

I try to add panel to my customizer but code below doesn't work (panel don't show in customizer container). My code: add_action( 'customize_register', 'customizer_test' ); function ...
0
votes
1answer
33 views

Custom theme - how to link the image without posting it

im creating a custom theme for wordpress 4.1.1. i had encounter a problem with adding a media (an image) to a post. When I choose an image via the media library, i select it but i only have the ...
0
votes
0answers
21 views

I want to list my custom taxonomy with a custom post type in a plugin

I've created a simple plugin for a custom post type. What fully works with an arhive page and a single page. Now I'm trying to add ann taxonomy to the custom post type. // Register Custom Taxonomy ...
1
vote
1answer
38 views

User can not login

I successfully inserted a new user to WP database and I want this user to be logged in right after this. I do it like this User Login Form <?php function dlf_form() { ?> <form ...
0
votes
0answers
51 views

Theme for a specific subcategory inside multiple categories

In relation with this topic in which I wanted a different theme for categories than for subcategories, now one step further, I want a specific theme for a specific subcategory used in multiple ...
3
votes
1answer
60 views

Virtual Pages plugins

I having hard time to make work the plugin Virtual Pages (WordPress plugin to ease the creation of virtual pages) I did have edit to create a loop based on a query. add_action( 'gm_virtual_pages', ...
0
votes
2answers
30 views

Theme for subcategories

I am working with categories (cities) and subcategories with the same menu (for example: cars, animals, houses). Therefore right now my categories structure looks like this: - London -- cars -- ...
0
votes
1answer
56 views

Disable default posts (Posts,Pages,Comments and Media) in wp-admin

I want to disable the default post types for user author in the wp-admin panel of the wordpress and display only custom post types. For that i had got the code given below. function remove_menus(){ ...
0
votes
0answers
33 views

Customizer API and pages

I try to develop customizer API in my Theme but I have a litle problem. When I'm in customizer in left side I have some section (My Section) and there is color picker to change background color. After ...
1
vote
0answers
40 views

Allow non-admins to access the Customize theme page

I'm using a theme that has a very robust customizer and I want users other than an admin to be able to use the customizer so they can customize what their site looks like. The URL for the customizer ...
0
votes
1answer
70 views

How to load a mycred hook from a plugin?

I've created a hook for mycred following this tutorial. I added the code to the function.php, and I am now wondering how to call it from my plugin? I have no clue, and the tutorials that I've ...
0
votes
0answers
45 views

Possible to make a site like urban dictionary using WP?

Wordpress is great for blogs and has a ton of plugins and customization potential, so I'm wondering if it could also be used to make a site very similar in functionality and scope to Urban Dictionary? ...
0
votes
0answers
23 views

How to print search results related categories hierarchical?

I'm trying to print search results related categories hierarchical in sidebar area. I did that but my code prints just terms without their parents. Here is my page. I want to print the terms like ...
2
votes
0answers
47 views

Add control in image detail panel

I am trying to add a checkbox control in the image details popup (when editing image in a post). I have added the following code in my template function.php but I can't manage to display the checkbox ...
2
votes
1answer
134 views

Add field to posts (checkbox) that only one post can have

I am trying to add a field to Wordpress posts (not pages) which would simply include a label and a checkbox. Something like: Make this the sticky post? If check, the key should be set to TRUE or ...
2
votes
1answer
15 views

How to provide a demonstration of Wordpress for new customers

I'm a website builder. I'd like to show potential customers the admin section of a Wordpress install. I'm comfortable setting up a separate install in a demo. sub-domain, but I don't know how to go ...
0
votes
0answers
53 views

PHP call div with function

I might be showing my green-ness with PHP code here, but I need help. I've got divs that are all styled the same but have differing content, as they are related product snippets to be displayed on a ...
0
votes
1answer
99 views

How to merge all my pages into one, while keeping a menu bar?

I have currently a website with a basic organisation : 5 different pages ("About us", "projects" ...etc.) with a typical menu bar. I would now like to have all the pages into a single one. 1) How can ...
0
votes
1answer
39 views

toggle Multiple Loop with tittle

I need some help I want to list all post from a meta_key, order by meta_value in ASC order All this in 1 toogle jquery. I've this: <div id="box-temp" class="gray-shadow"> <!-- First Loop ...
0
votes
0answers
25 views

Custom User Authentication using Meta Data

I have inserted two custom fields called user_login_status and activation_code in wp_usermeta table. My code on login page function dlf_auth( $username, $password ) { global $user; ...
-1
votes
1answer
141 views

Wordpress equivalent to Drupal Views? [closed]

Is there a Wordpress plugin that provides a subset of the functionality found in Drupal Views? Specifically, I'm looking for the ability to use a Views-like plugin to pull in fields of content based ...
0
votes
2answers
45 views

insert autofocus in a custom taxonomy form

I've created a custom taxonomy and added it to the admin menu. It works fine but I'd like to tweak it a little so that the input autofocus goes to the "name" field as soon as I select to add a new ...
0
votes
0answers
52 views

Advanced Field Repeater Pagination with Custom Post

I am using a custom post type as well as advanced custom fields with a repeater. I need to somehow loop through all the repeater subfields and paginate them to 6 items per page. I have tried a few ...
1
vote
0answers
47 views

What is the correct approach to deal with css rules that the theme gets from a function

I am trying to change the color of entry-footer in my Twenty Fifteen theme. My modifications in the child theme is overridden because when the website is rendered in a browser, WordPress outputs ...
0
votes
0answers
41 views

Php custom query function assistance

I'd like the script to return a list of posts which are in the category 'team-resources' and also have the custom field value for Hub ID which the script finds on the page. If the page carries a ...
0
votes
0answers
35 views

Custom metabox for multiple images gives a JQuery error saying a function does nog exist

I have a script that creates a custom metabox and makes it possible to upload multiple images to one page post. It gives me no error but the console tells me this: TypeError: add_field_row is not a ...
0
votes
1answer
47 views

Function to query by custom field and category

A function was written for our small non-profit org by a developer who is no longer available. The function works well, and we now need a similar function as a modification of the query criteria. ...
0
votes
1answer
11 views

Bulk product editing in wordpress

I am trying to bulk edit products when I select several items and hit edit it loads the page but then closes itself like I never hit the edit button in the 1st place. Do you know why it wont stay on ...