The server-side programming language that the WordPress core, plugins and themes are written in.

learn more… | top users | synonyms (1)

0
votes
0answers
3 views

How to change Woocommerce product id for recurring subscription

so we have different product ids for each month during a 12 month subscription. I looked in the database and noticed when a recurring payment runs it pulls the original order in the subscription from ...
0
votes
1answer
25 views

Showing content from one page on another

There are many posts that seem to strike around this area, but I'm more and more confused by each one I read. I have a page that shows the "Terms of Service" (id = 1086). I would like to display the ...
0
votes
1answer
568 views

Issue displaying multiple TinyMCE editors with WPAlchemy

I have a custom post type with a WPAlchemy admin meta box class including multiple textareas with TinyMCE editors(for adding content to the custom post template). I've gotten the editors to display ...
0
votes
1answer
21 views

How I can add div to menu?

I have div structure <div class = 'main-menu'> <ul class = 'menu'> <li class = 'item1'></li> <li class = 'item2'></li> </ul> </div> But I want ...
1
vote
1answer
19 views

Get the the title of Wordpress after comma

I've read that you can get the title before comma(,) Get the title before comma but wondering how can I get the title after comma(,) ? is it also possible to use strtok()? or are there similar ...
0
votes
1answer
18 views

How can I remove these resize lines from the comment box?

How can I remove these resize lines from the comment box? http://prntscr.com/8awm1c I'm using the theme twentyfifteen. I don't know where to locate them in the file manager or even the source code!
4
votes
4answers
525 views

Should I write a PHP function in home.php?

I am trying to learn WP Theme development. And as I have understod all "wp core" functions should be placed inside functions.php. But what about custom functions? Lets say I would need a simple ...
0
votes
0answers
2 views

modify the events calendar for wordpress

need help with ( the events calendar ) for WordPress, I'm trying to add day of the week under the number but its adding 5 days of the week under each number. see example here http://imgur.com/9378mwf ...
1
vote
1answer
1k views

How to get Poster (thumbnail) Image of Video

I'm getting all videos using the function below and it's working fine. Now I want to get the videos Poster Image (Thumbnail Image) from that video. How can I get the video Image as thumbnail? I've ...
0
votes
0answers
13 views

Call function from WordPress function.php to page-home.php

I'm stuck at this. Please help. Basically, I'm trying to create a hover on image to reveal social icons effect. Clicking the social icon will take you to the relevant page of the social website in a ...
0
votes
0answers
15 views

How to make wp-login.php and wp-admin not accessible

Hello guys I wanted to limit my LOGIN and WP-ADMIN without using plugins. I have a network (multi-site): I have done so: wp-config.php define('WP_ADMIN_DIR', 'controlpanel'); define( ...
13
votes
3answers
11k views

Sending the reset password link programatically

I have this manually created page: $user_login = sanitize_text_field( $_GET['user_login'] ); if ( username_exists( $user_login ) || email_exists($user_login) ) { ?> <!--Everything has been ...
0
votes
1answer
21 views

Is_template how to add one more template

I have wordpress theme which is adding some scripts and css trought functions php. I want to add one more template file , but don't know how. Any ideas? This is what I have. Will be happy for any ...
0
votes
0answers
11 views

How to display post content with some html tags?

Trying to output an xml file for single posts. In such file I need to display the content of each post in a way that can be accepted in xml format. After reading on the internet (for five days) I ...
0
votes
0answers
13 views

Product Category Page in Full Width

Initially the Product Category page is divided into Content Area (70% width) Side Bar Area (30% width) I have removed the side bar area using function.php. However the content area is still in 70%. ...
1
vote
2answers
9 views

How to remove duplicate sub-menu name for top level menu items in a plugin?

I have written a custom plugin for wordpress. Once I add a sub-menu to the plugin I get a double entry for the top level item: I would like to disable the second "TopLevel" menu item so it would ...
0
votes
1answer
15 views

php if, else & custom fields - syntax error

I'm just starting to use custom fields and would like to use it to display an author box with (1) author photo (2) author name (3) author bio. I use this code in loop-single.php and it works fine: ...
0
votes
2answers
809 views

get_post_custom single array

Is there a way to return single values only when I run get_post_custom($post_id); it seems that I'm receiving double array, even when there only one value for this meta_key
0
votes
0answers
13 views

500 Internal Error appears after adding the codes in .htaccess file

The issue is: I have a Wordpress site running on 4.3 and using the theme from Envato Market (POND v2.0). And I ran a SEO test using this website (SEO Checkup Test). After going through the tips on ...
1
vote
1answer
17 views

WP Post Template - Templates in own folder

I am using the plugin: WP Post Template which allows me to use templates for custom post types. At present the plugin watches the theme root directory for pages with: <?php /** * WP Post ...
0
votes
0answers
8 views

Get stock from another store for a WooCommerce store

I want a help! I am reseller of other stores, and as the store grows it becomes hard to manually update inventory. I have a custom field _url_font that I fill with product source address. I wanted ...
0
votes
1answer
606 views

save_post action inside a custom metabox class not working

I am writing a class to create metaboxes and save the form data. The problem is, I keep getting a warning when I click "publish": Warning: call_user_func_array() expects parameter 1 to be a valid ...
1
vote
1answer
677 views

Specified file failed upload test. wp_upload_handle

So I managed to write a peice of code that allows me to upload a zip file, im not even sure where it gets uploaded too, and I am doing it on my localhost with apache in control (www-data). the code is ...
0
votes
0answers
6 views

Passing arguments to a admin menu page callback & add sub menu page?

I want to function add_submenu_page function html_panel Re-run. but Runs only once. This means that each page will have an increased number.But the number 1 show all pages. <?php $counter = 1; ...
0
votes
0answers
14 views

How to use plugin only for specifict page template

I installed welcome message for wordpress like text which is fading out after some seconds automatically and it has no option to set it only on a main page. I'm interesed is there a way to use this ...
1
vote
2answers
37 views

Making plugin unique to not conflict with plugins with the same name

I have plugin that has the same name as other plugin uploaded to wordpress.org How can i make it unique so it doesn't share "View Detais" link and auto-update with other plugin uploaded to ...
-3
votes
0answers
11 views

How do i get facebook chekins to wordpress site [on hold]

How can i get only facebook checkins to site . I want to display checkins from facebook to site.
0
votes
0answers
19 views

How do I change the button “comments”?

How do I change the button "comments" in theme twentyfifteen to "..."? I'm assuming it's in the comments.php file? I could be wrong. I'm referring to this area. prntscr.com/89nr1q <?php /** * The ...
0
votes
0answers
16 views

PHP > Scheduled Tasks > Sending daily email with dynamic API variables

I'm trying to write a PHP cron job that would call an API, return a set of numerical variables, calculate a second set of variables, and send an email to selected recipients with those variables ...
0
votes
0answers
9 views

Admin panel news section remove validation [on hold]

I have a 3rd party word press site in the news section when adding news it /wp-admin/edit.php?post_type=news in this we have text fields for both english and Arabic new but i only want the news to ...
0
votes
1answer
553 views

Sort posts by custom fields value using dropdown menu

I'm trying to sort my posts by a custom field value, called price. Only using numbers in the custom field value. I want that the visitors of the website can sort the posts on price by using a ...
1
vote
0answers
10 views

Detect a focus on wp_editor

I wan't to detect/callback when a wp_editor(..) output text-area/content-editable is focus. Quite a simple question that I could not find anywhere. <div class="compose-body"> <?php ...
0
votes
2answers
214 views

Use SCSSPHP to compile Theme Customizer Values into .SCSS files ready to compile to CSS

I've been having trouble Automatically Compiling my .scss files into my main WordPress style.css file. I'm using Leafo's SCSSPHP script and trying to achieve a few things. i'm using Kirki ...
0
votes
1answer
23 views

how to get attached file url for current post?

Trying to get the attachment file url for current post, using this code: if ( is_singular('post') ) { $args = array( 'post_type' => 'attachment', 'posts_per_page' => -1, 'post_status' => ...
0
votes
2answers
19 views

Rearrange get_categories array compared to another array

I've got a function that pulls the latest post from each category and arrange categories by latests posts. What I get from this is an array with category ids which I want to use to rearrange the ...
0
votes
1answer
19 views

How to style injected code in header section?

Trying to add custom code to header section <head>..</head>of the blog by adding this code to child-theme functions.php // Add scripts to wp_head() function child_theme_head_script() { ...
0
votes
0answers
16 views

how to print variables in wordpress 4.3?

A few months ago I wrote a little woocommerce plugin that does some curl requests. So far so good just that a few days ago I updated my Wordpress to 4.3 and Woocommerce to 2.4.5. Now I can't var_dump ...
0
votes
1answer
137 views

Show custom default avatar instead of gravatar

I'm using this custom function to get the default avatar from my server instead of gravatar: if(!function_exists('custom_avatar')){ function custom_avatar($avatar_defaults){ ...
2
votes
1answer
52 views

Processing a subscription form with POST method?

I am trying to integrate a ‘subscribe to newsletter’ feature on my wordpress blog Users just need to enter their name and email address, hit subscribe. This is then supposed to send me an email and I ...
12
votes
2answers
4k views

How to create custom 401, 403 and 500 error pages?

When a 404 error is encountered, a 404.php template file can be used to render a custom error message. This is documented in the Template Hierarchy article. My aim is to create custom error pages ...
0
votes
1answer
25 views

Allow user to Upload image and manipulate it on the frontend

The site I am working on allows users to post things up for sale. In the form for creating their post, there is a simple file upload field. The problem is that sometimes when users upload images they ...
0
votes
0answers
11 views

Numeric values associated to admin menu bar

I'm customizing my admin left hand menu and am having an issue coming up with some of the numbers. I've even gone through the option of counting as I save out my code to confirm their sorting order ...
0
votes
1answer
438 views

Including all post id's of a custom post type into an array

For my single.php (products.php), I try to build a navigation via which the user can switch between products based on the meta key "price". I want to put all id's of the products post type into an ...
1
vote
1answer
24 views

max_input_vars: how many am I using?

I'm processing a large amount of Options in a Wordpress theme. I want to ensure I keep below the default 1000 before hitting a max_input_vars error. Is there a way to test how many 'input_vars' I'm ...
0
votes
1answer
40 views

How to get the first letter from custom field?

I have a custom field 'first_name' created by ACF advanced custom fields. I use this code to get the value from the field: the out put would be something like Mark. What I need exactly is getting ...
0
votes
3answers
544 views

Headers already sent in Pluggable.php / homepage and wp-login error

After migrating site to another account on same host, I started to receives strange errors. Firstly I encountered an error where at the login page I was asked to turn on Cookies. And after I deleted ...
0
votes
1answer
25 views

How to style options page in dashboard?

working with a child-theme, adding a custom options page to dashboard in which admin can save details about the site. Using this code in the child-theme functions.php to create the options page: ...
1
vote
1answer
1k views

Fatal Error relating to sessions.php

here is the error code I have Warning: Unterminated comment starting line 2079 in /home/teamspor/public_html/wp-includes/user.php on line 2079 Warning: ...
1
vote
1answer
379 views

How to add date to navigation bar

I've created a new navigation bar on this site: http://www.tomorrowstrends.com/ I'd like to add the date on the right hand side (on the grey menu below the blue one). I thought I could add this to ...
0
votes
0answers
25 views

Is there a hack for using is_page() within the function.php file?

I've created a function in my functions.php that's called when the submit_form event is fired on the front-end. Here is the code: add_action( "wp_ajax_nopriv_submit_form", "submit_my_form" ); ...