Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (14)

0
votes
0answers
37 views

Limit Upload File Types in WP Editor but not affect Admin Dashboard

I'm using the WP Editor on a page outside of the admin section when allowing my users to create a post. I'm enabling it like this: $editor_id = 'post_information'; wp_editor( $content, $editor_id ); ...
0
votes
1answer
16 views

Wordpress shortcode Issue!

Hi I have developed a shortcode that lists posts from a custom post type depending upon taxonomy terms. But I am having an issue. It's displaying all posts from all terms instead of the terms being ...
0
votes
0answers
72 views

Redirect/Route every broken link to 404 page

I have a wordpress site. It was transferred from another CMS now. And WP doesn't want to route non existent links to 404 page. For example, http://betall.ru/aisi-316-analog/234524/ routing to ...
-1
votes
1answer
61 views

Only show posts belonging to multiple cateogries at same time

For blog post page, I have about 100 posts-categories. If I select 2 or 3 or more categories out of them randomly, for example category A and category B, I hope the blog page can only show posts ...
0
votes
1answer
50 views

dbDelta not creating tables with composite keys

I've been trying to figure this one out for 3 days now, reading every reference on dbDelta I can find. My ultimate goal is to create a table of unique ad_id, ad_trigger pairs. This does not create a ...
0
votes
1answer
51 views

How to display data in archive page?

I have a custom post type 'job'. I created a archive-job.php . How can I display 'post date', 'city', 'state' in my archive-job.php page? Currently, my archive-job.php page displays a list of jobs ...
0
votes
0answers
38 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
62 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
35 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
350 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
141 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
37 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
34 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
54 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
22 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
51 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
24 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
44 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
30 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
54 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
46 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
26 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
233 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
238 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
67 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
114 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
108 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
176 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
25 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
50 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
62 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
79 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
54 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
73 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
53 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
64 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
101 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
63 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
32 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
66 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
198 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
16 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
72 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
236 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
47 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
48 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
266 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
53 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 ...