Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (10)

0
votes
1answer
13 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
32 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
11 views

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

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
0answers
24 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
12 views

Fit 'ANY LIST SCROLLER' (jquery scroller) to wordpress menu

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
20 views

Modify a plugin [on hold]

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
25 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 ...
-1
votes
0answers
13 views

Custom email notification - product vendor plugin [closed]

I need to customize woocommerce email notification with vendor information from 'product vendor plugin'. I want to add in the email, the bank transfer information for each vendor to the customer. ...
0
votes
1answer
14 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
23 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
31 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
26 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
27 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
9 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
16 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
20 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
20 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
17 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
38 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
20 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
109 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
104 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 ...
-1
votes
0answers
19 views

Get all Post as per Category and Tag ( from url parameter) in wordpress

I want a custom page where i can get all post as per Url Parameter ( cat and tag ) <a href="localhost/celeb_page.php?cat=38&tag=aamir-khan" >View All Photo of Aamir</a> Note : ...
2
votes
2answers
242 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
30 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
11 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 ...
-1
votes
0answers
17 views

Custom registraion system without plugins

I am trying to make a custom registration system in my without plugins. I have used a lot of plugins like wp-members, profile builder, pie register, registration plus redux and so on, but none suits ...
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
27 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 = ...
0
votes
1answer
31 views

Custom post types related to same custom post type?

I have custom post types product. I want to create related products from same custom post type (product). The user should be able to select posts (products) just as a user selects a category(or more) ...
0
votes
0answers
23 views

How to display a custom built field on wordpress default gallery

I created a custom field for the media I can upload on my wordpress website, by adding this code to functions.php: /** * Adding a "Copyright" field to the media uploader $form_fields array */ ...
0
votes
2answers
48 views

Wordpress native “playlist” shortcode. Next and Prev there are but with no icons. How to fix?

If I use on my Wordpress 4.0 the beautiful playlist shortcode I don't see the famous "Next" and "Prev" icons, but only this code in my Html code: <div class="wp-playlist-next"></div> and ...
0
votes
0answers
16 views

Display the nav menu for a particular page id

Say that I have the id of a page that is in the wp_nav_menu() I would like to show the wp_nav_menu() for that particular page. Is that possible? I can use wp_get_nav_menu_items() to get all items for ...
0
votes
1answer
14 views

Warning: Creating default object… when altering Customize panels

I'm trying to move my theme's [only] widget area outside of WP 4.0's nested "Widgets" panel by doing the following: $footer_widgets_section = $wp_customize->get_section( ...
0
votes
0answers
23 views

Restrict my pages from public

In my site I want to restrict some pages from public. How can I do this? example : www.xyz.com/members This pages only access when the user is log in but now its access public also using coping ...
0
votes
1answer
41 views

Menu is not visible in appearance

I have added following code to my function.php function register_my_menu() { register_nav_menu('header-menu',__( 'Menu' )); } add_action( 'init', 'register_my_menu' ); And here is my code where ...