Tagged Questions

Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (10)

1
vote
0answers
9 views

Allow guests to use WP Customizer but disable save button

I've seen in some WP demo themes that developers let users to see a theme customizer (allowing to try the customizations) disabling the save button as well. So the question is how to do that in a ...
1
vote
1answer
12 views

How to get shortcode working from custom meta field

I've created a simple text custom meta field for pages. I can successfully enter plain text which prints on the frontend of the site with no problem. I want to add shortcodes also. If I add a ...
0
votes
0answers
14 views

How to add a simple form to my plugin?

I created simple plugin . It is showing the deafult add and list screen. How can i remove it and show my custom screen . I dont want to use other plugins. I just want to know how to add atleat a ...
-1
votes
0answers
13 views

Show prices in WooCommerce on button click [on hold]

I have been searching around a lot for what I am looking to do and decided to post a Question in case someone can help me out. I am looking for way to make an e-shop look like a Catalog BUT I would ...
0
votes
0answers
7 views

How can I make a redirect depending on the selection in the dropdown menu (CONTACT FORM 7) [on hold]

How can I make a redirect depending on the selection in the dropdown, example: I have a select with two options when I choose an option to send the email it redirects me to a page, if I choose the ...
0
votes
1answer
20 views

Taxonomy template by post type

I have 2 custom post types that share a taxonomy. The taxonomy template of my taxonomy ( taxonomy-my_tax.php ) will query both custom post types. Is there a way to have a taxonomy template for each ...
0
votes
0answers
22 views

Link (by categories) to the first and last posts in custom post type

Link (by categories) to the first and last posts in custom post type For a new theme, I created a “story” custom post type. The main content has a different style than the blogging part, with ...
-1
votes
0answers
22 views

Structure for Wordpress Site [on hold]

I'm trying to determine the best way to structure a site using all the features in Wordpress. Here are the things that I'm thinking: I am going to have a lot of businesses so I was going to structure ...
0
votes
2answers
46 views

OrderBy multiple custom meta fields

I have a custom post type in my plugin named members, along with two custom fields; first_name and last_name. I am trying to order my listing my the last name, then the first name. The only solution I ...
0
votes
0answers
12 views

Get theme setting from javascript

Is it possible to read a theme customization from javascript? I tried wp.customize._value but it always returns an empty object {}. I am trying to read the theme setting from a JS file included in ...
0
votes
1answer
19 views

Replace a 'Title' tag with a Custom Field

I have this code in my theme: <div class="article-navigation"> <?php previous_post_link('<div class="navigation-item navigation-item--previous">%link</div>', ...
0
votes
1answer
34 views

How to loop through 1 CPT with 2 Taxonomies

I have a CPT (Products) which has 2 taxonomies (Industry and department) I have the loop which delivers a "Product by Industry" which works Industry 1 • result 1 • result 2 Industry 2 • result 1 • ...
0
votes
1answer
16 views

Make User Role a Filter

I have a backend which I'm trying to edit. Basically it says: If (any) user is logged in, show some records, else show nothing. I'd like to limit this to a certain role named "Administrator", like ...
-1
votes
1answer
15 views

Woocommerce cart/alert messages on none woocmmerce page [closed]

I have a none woocommerce page and am using a loop to get products however when I add a product from that page to cart the cart/alert messages wont appear but if after adding the product to cart the ...
0
votes
1answer
32 views

Wordpress custom search - pagination

I have written a custom wordpress search. The problem is that the pagination is not working. The pagination (1, 2 , 3 , 4 ,5 >>) appears on the web site, but when i press page 2 (or anything else) no ...
-3
votes
0answers
17 views

Fit 'ANY LIST SCROLLER' (jquery scroller) to wordpress menu [on hold]

I want to apply the 'ALS' jquery plugin on Wordpress menu. I have 2 menus in my web site, and the jquery plugin should be allied only on one of them (lets call this menu - 'menu-1'.) Here the link to ...
0
votes
0answers
15 views

If it is a top level category show children otherwise show sibling categories

I found a great piece of code for my category.php file to list categories for a specific taxonomy (not tested). BUT - how can I change the code (or achieve it) to show the default Wordpress categories ...
0
votes
0answers
21 views

Modify a plugin [closed]

I am using "paid memberships pro" plugin and modify a few parts. There are 2 important folders. /adminpages/ <== this is for backend setting /pages/ <=== this is for frontend and some ...
1
vote
1answer
28 views

Customizer: Unique identifier that distinguishes which image upload control is uploading an image

In the Theme Customizer, I've got a custom add_action('wp_handle_upload', 'upscale_responsive_bg_imgs') which upscales responsive background images when uploaded from the theme customizer. It's ...
0
votes
1answer
15 views

Get Custom Taxonomy Terms by Date

I'm trying to get a list of custom taxonomy terms by date (or possibly slug). What I need is the NEWEST term and it's permalink in a custom taxonomy. I've been trying the code below but it's returning ...
-1
votes
2answers
29 views

How do I include the sidebar (with Widgets) in a custom theme?

I have created a custom WordPress theme and need to be able to include the sidebar with widgets. I have the sidebar.php file, functions code and three widgets waiting to see the light of day. But ...
0
votes
1answer
34 views

Check if User exists in Wordpress Multisite

Hi I am creating a custom Form to Register a new user in Backend. The problem is how I check if the user exists in another website of my Wordpress Network? And if not how can I register the new user?
0
votes
2answers
30 views

Creating custom page template

So, on my wordpress site I have page called "Books" and sub-pages, each containing info about some book. It looks something like this: Books Harry Potter, J.K.Rowling Some Other Book, Who WroteIt ...
0
votes
1answer
28 views

media-uploader insert into post is not inserting

I have created a plugin for custom logo and its working fine, but when I tried to add this functionality into my exiting theme options its not working. I have this js code. ...
0
votes
1answer
15 views

Lost password and back to blog in same line

I would like put on the same line "Lost your password?" and "Back to Blog/Site" links. While I'm posting that I take a look to this post and found my solution: Positioning the “Lost your password?” ...
0
votes
0answers
13 views

How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”

I have a custom post type for a plugin I'm creating and the label for the "add an item" type of button (at the top of the list page) needs a partner-button that says "import" and one that says ...
0
votes
1answer
21 views

failing to display a custom font [closed]

I think this is a pretty common issue. I just spent an hour trying to figure out what's wrong... my custom wordpress theme doesn't display a custom font. Here's the code: @font-face { font-family: ...
0
votes
2answers
40 views

Keep Title and Description always

I want to keep the title and description of wordpress blog like this: Title | Description (showed in a tab of navigator). And I don't want to change his name while I am surfing the site. I think that ...
-2
votes
1answer
22 views

Storing form data into wordpress database [closed]

How can i create a input form in my existing wordpress website and store the data into database. I am using free swift theme. Thanks in advance.
0
votes
1answer
26 views

How can I make site-wide content editable, for example footer content

I'm new to wordpress, but I have enough developer experience. (the first thing I did was to get a blank template (blankslate) to start building up this wp site). I want to understand what are the ...
0
votes
1answer
20 views

Orderby two meta fields not working

Good day. I have the following code: $args = array( 'post_type' => 'property', 'tax_query' => array( array( 'taxonomy' => ...
0
votes
1answer
42 views

Programmatically add a custom page/path/url/route to WordPress

Conceptually what I want to do is super simple. In my plugin, I want to add a single path/route to my wordpress site: [mysiteurl]/testpath ... that loads a particular file, like: ...
0
votes
0answers
21 views

custom post types preview from post.php and new-post.php

I use wordpress 4.0 and I'm building a site with 2 custom post types: ptf and addendum. I modified ptf post type interface (post.php and new-post.php) and in this interface I added 2 addendum post ...
0
votes
0answers
14 views

How to show a distinctive “header” (about me) on the home page?

I want to show a distinctive header at the top of the list of the blog posts on the homepage of my site, but not the other ones. This will have a brief bio of myself & a photo. I don't want this ...
0
votes
0answers
9 views

Sorting events by meta date value after current date

I have custom post type "Events" and also have custom meta box date, in default mode its working and sorting events with published date, but i want changing events sort by custom date, i've added that ...
0
votes
1answer
22 views

Custom Fields Question

I'm new to wordpress and I am trying to understand these custom fields. I read the wordpress codex page refering to custom fields but I have some questions. I take for example my site. I created a ...
0
votes
0answers
16 views

how to store wordpress terms?

i have customized a wordpress form and added two new fields of type "radio". i got this post array but wordpress not storing radio button data. here is my code for adding radio : ...
0
votes
1answer
14 views

Where should I put this custom data?

My client needs to store food nutrient data in his site's database. I have food name, calories, protein, fat, carb, fiber and other data to store for many food items. I'm a developer but new to WP. ...
4
votes
1answer
112 views

How to Change the Entire WordPress Admin panel Look and Feel?

I am trying to change the WordPress Admin panel look and feel for depending upon the different role types that are in WordPress. How can create/assign different themes for each role i.e. Editor > ...
0
votes
1answer
13 views

Call a duplicate registration form with other url

I see there are url's like register=1 or action=register. I have made a php file with my own form in it and I would like to open it with my own link like registration=2 or something similar to it how ...
0
votes
0answers
28 views

4.0 Media Uploader Customisation

Does anyone have/know of any guides or tutorials that break apart the different hooks and sections of new improved the media uploader? Specifically, I'm looking to add a new tab to between the ...
0
votes
1answer
116 views

Custom taxonomy archive page problem

My website is built on custom post types, that I have organized with different custom taxonomies. The menu buttons are the taxonomies archive pages (red, blue, green), so that when you click on the ...
2
votes
2answers
256 views

Custom pages with plugin

I'm developing some plugin where I would like to enable custom pages. In my case some custom page would contain a form like contact form (not literally). When user will fill out this form and send it, ...
0
votes
1answer
24 views

Custom Fields Bulk Edit

I have a question. I am running detube theme which has a custom field named "dp_video_code" in which i put my video embeded code. Recently the embeded code has change and I need to modify the video ...
0
votes
0answers
32 views

Google map disappeared after updating to WP version 4

Few days back, I updated my wordpress website to the latest version Benny. But after that update, everything went haywire. One premium plugin went missing. Google map disappeared into thin air. ...
0
votes
0answers
12 views

List ads with a special custom meta name

Actually we have 3 blocks: New Ads / Popular Ads / Premium Ads. My question; if I would like to add a new Ad that lists all Ads with a custom meta name cp_annonceur == professionnal Could you suggest ...
0
votes
1answer
24 views

Replace code in plugin template

In plugin, I have following code in function: $return_string .= '<li class="wpc-category ' . $class . '"><a href="'. get_option('catalogue_page_url') .'">All ...
1
vote
0answers
28 views

Add a custom meta box in the post options that loads some html code in the header

I run a blog that is built in the format - Logo - Nav Large Image + Email Optin Form Content / Sidebar Footer Now I want the large image and email opt in form to be optional. Right now, what I ...
0
votes
1answer
28 views

Creating a search with tag variable also added for more detailed results

Wordpress search results is definately not the best indexing and search function we have seen.. If adding multiple tag variables in the search in order to get a more precise result work? For example: ...
0
votes
0answers
15 views

I'd like to move the Widgets Panel to the bottom of the list in Customizer

I'd prefer to have the 'new' Widgets Section/Panel (that extends to the widget areas) drop down to the bottom of list in Customizer. I've tried: $wp_customize->get_panel('widgets')->priority = ...