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

learn more… | top users | synonyms (1)

0
votes
0answers
12 views

Show wordpress popular,recent posts in another site

I need to show popular & recent posts in another php web site under the same domain. example: domain.com -> main website(php,mysql) domain.com/blog -> wordpress blog Need to show ...
0
votes
1answer
11 views

Why do I get an error message on Wordpress blog posts (only) on my local environment (and on the original server I don't)

I copied all my WP files from the server to my local WAMP as a dev-environment. Everything works smoothly except when viewing a blog post. I get a good output of all the ...
0
votes
2answers
708 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
6 views

Organization of different portfolio under a user in WordPress

I would like to be able to organize properties (real estate) in projects. Every property will be assigned to a project. Some properties will be assigned to the same project. This would likely be done ...
0
votes
0answers
7 views

Oneall's Social Login plugin: can't get custom CSS working

According to the official documentation here, we can use a custom CSS theme for our Social Login plugin by adding the following in functions.php: //Use a custom CSS file with Social Login function ...
0
votes
0answers
14 views

Is there a way to get raw code for social media icons?

After doing a quick internet search I couldn't find what I'm looking for. What I would like to do is have various social media websites' share icons on my webpage. But I want to avoid using a plugin ...
0
votes
0answers
9 views

Tracking comment form submission with Segment.io plugin

I am using the Segment.io plugin for analytics on my site. Specifically I am trying to track when a user comments on a post using the analytics.trackForm function. See code below... <script> ...
0
votes
0answers
25 views

SQL query by post type

I've got this SQL query: $dietary_restrictions = $wpdb->get_results("SELECT DISTINCT meta_value FROM " . $wpdb->postmeta . " WHERE meta_key LIKE 'dietary_restrictions_%_restriction' AND ...
0
votes
0answers
6 views

Adding a third party SDK for Kitlocate into wordpress

Hi guys so I have built a website with wordpress and I am in the process of turning it into an App for both android and IOS using AppPresser but before I do this I need to integrate the SDK into ...
1
vote
2answers
78 views

Custom post status not working

I'm trying to create two custom post status'. I used the Codex to generate the code and that didn't work. Then I went to http://generatewp.com/post-status and it didn't work either. It isn't showing ...
0
votes
0answers
12 views

Workaround for PHP Limit for image upload: How to use a local installation to get images online?

I have the common problem while uploading images, that I get the fatal out of memory error. Fatal error: Out of memory (allocated 40632320) (tried to allocate 5120 bytes) in ...
0
votes
4answers
3k views

How to find out if option exists but is empty?

I am using something like this on one of my plugins: $myOption_def = "myOption Default Value"; $myOption = get_option( 'myOption' ) ? get_option( 'myOption' ) : $myOption_def; That works fine, but ...
0
votes
1answer
12 views

if user is admin display admin link and logout link else display logout only

Like the title suggest I would like to create a conditional with the ability to if user is admin display admin link and logout link else display logout only in wordpress. I have created this ...
0
votes
1answer
13 views

WordPress styling recent post

Trying to replicate the theme shown here http://i.imgur.com/k60YtiX.png. As you can see on the screenshot the first post is black and the second post is a grey colour. My progress so far is just at ...
0
votes
1answer
21 views

WordPress rating by views

I am trying to create a system much like the one on this website. http://i.imgur.com/0trw2c3.png What happens is, if the post has over 1,000 views it gives it a nice little icon above the featured ...
0
votes
2answers
447 views

Get unique post in parent category

I have a parent category and several child categories. I also have several posts that belong to the child categories. Each post can be belong to several categories. I want to know how to query the ...
0
votes
1answer
14 views

Function returns post URLs rather than retrieving Facebook Graph API data

require('../wp-blog-header.php'); query_posts('&showposts=-1&order=ASC'); while (have_posts()) : the_post(); $url = the_permalink(); $json = file_get_contents( ...
0
votes
0answers
11 views

How to move posts in featured category on top and keep pagination

I want to move every post from category_id = 11 and 10 on top of the list and then query every other post which is only in 10th. I thought that making two loops will do the trick but there is a ...
0
votes
1answer
444 views

Creating wordpress user registration form

I am having a form page called Test Form with this form : <div id="container"> <form action="wp-content/themes/max-magazine/TestForm.php" method="post" name="myForm"> User <input ...
0
votes
1answer
12 views

Registration form not registering First and Last name

I'm creating a custom registration form which works using username and email inputs, but when I include First and Last name fields it won't let me register. Here is the form: <form ...
0
votes
2answers
452 views

Wordpress changing single quotes to double quotes in title and content

My wordpress site has this annoying problem: it converts the single quotes (e.g. it's) into double quotes (it"s) and it looks bad. For example, look at the title of this post. I have searched long ...
1
vote
1answer
15 views

Add before_content and after_content to register_sidebar

Is there any way to add two new functions, before_content and after_content to the register_sidebar function? These would work like before_title and after_title, except it would wrap everything that ...
0
votes
2answers
155 views

unknown issue in 'header.php' preventing theme from displaying fully

My theme is currently activated and showing only the background image and the "home" link. I believe the issue lies within header.php, but I can't quite figure out what. Any ideas? (Also, is there a ...
0
votes
0answers
11 views

E-Commerce Application integration to WordPress (Angular.JS, MySQL, PHP, Codeiginiter) [on hold]

I developed the project (e-commerce application) and I used Angular.JS for the front end, MySQL, PHP and Codeigniter framework for the back end and Content Managemnet System. I did not use ...
0
votes
1answer
14 views

403 (Forbidden) delete file image in themer folder

I'm having trouble with permission to delete files that are within the theme folder. All folders and files are with permission 775 and there is no error in the code , because when I use the code in a ...
0
votes
0answers
12 views

Genesis / custom template page / setting the page title and meta desc

My WP site is running Genesis. I've just implemented my first custom page template in a child theme. The template runs some PHP and makes some data available to any page based on the template using ...
0
votes
0answers
20 views

PHP printing… PHP [on hold]

I'm currently troubleshooting a website whereupon the server is printing all of the PHP rather than executing it. Here's a sample of some of the front-facing content of the website: cat_name == ...
0
votes
2answers
43 views

Inserting dynamic content into a page

I see this subject comes up regularly but have not seen an answer to my specific requirement yet. I'm trying to use a WordPress page as a template and insert database-sourced content (about 20 or so ...
0
votes
0answers
8 views

Ajax is running my insert query twice

I am working in WordPress and I run a function to insert a row in database with ajax. Ajax runs but for some reason insert operation is performed twice. Below is my code Ajax jQuery(function ($) { ...
0
votes
2answers
23 views

Add categorys to custom post type not working

register_post_type("butik", [ "labels" => [ "name" => "Butik", "singular_name" => "Butik" ], "show_ui" => true, 'public' => true, 'rewrite' => [ ...
0
votes
1answer
16 views

Adding “redirect” to a button

So, I have the following code: <?php if ( I_delete_user($user_id) || $demo_site->request_verification($user_id) || isset( $args["{$template}_button_primary"] ) || isset( ...
0
votes
0answers
12 views

Use result of first ajax call to trigger another

I am working in wordpress. I have below form 1 which is a search form and when I press search I get results with ajax. Now the result rows have button or link which when clicked should trigger another ...
0
votes
0answers
4 views

How can I set a subsection page for a plugin e.g ?page=_&subsection=subsection_page

How can I set a subsection page for a plugin ? I noticed some plugins have 2 settings pages as follows: Main one: options-general.php?page=page Subsection: ...
0
votes
0answers
17 views

Integrate my site with Wordpress login system

Hello I would lite to use the login system from wordpress and use on my other project. I found this code: require('../wp-blog-header.php'); if ( is_user_logged_in() ) { echo 'Welcome, registered ...
0
votes
1answer
51 views

Counter the number of the product in order (PHP) [on hold]

I am having a problem with a plugin... $total_items_of_order = count($order->get_items()); With this variable I am selecting al the products in an order. But I want that I every product gets a ...
0
votes
1answer
15 views

Removing get_template_part in child theme

Parent Theme loads some template files in its functions.php as follows: get_template_part ('lib/login/register.php'); I want to remove this file in child theme and include my custom php templates. ...
1
vote
1answer
340 views

Getting movie and serial on actor page

I'm building a cinema site, I came with a problem, let me explain: Movies- are stored in Post's Actors- are stored in Post Type - persoane ( taxonomy= lista) Serials - are stored in Post Type - ...
0
votes
0answers
64 views

Limit the number of successful logins

I would like to retrieve the number of successful logins of a user and act accordingly. If user logged in more than 10 times, then log out user automatically with wp_logout() or similar. I would ...
0
votes
0answers
14 views

Ordering by custom post meta key

I'm using the plugin WP Job Manager, and have a custom field with the meta_key "rating". I want to be able to order listings by rating, using "orderby". Normally for posts I imagine it would be ...
0
votes
0answers
12 views

Filter woocommerce products with product type

I added new product type like here http://wordpress.stackexchange.com/a/120220/66786 Now I want show just that type products here is the my query $query_args = array('post_type' => 'product' ); ...
-2
votes
0answers
27 views

Wordpress's WooCommerce Plugin compatibility with PHP 5.3 [closed]

We have a web server that has PHP 5.3 installed and as per our clients requirement we need to use WooCommerce on the wordpress website . In the woocommerce 2.3.7 plugin page on wordpress site, its ...
1
vote
1answer
789 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: ...
0
votes
0answers
23 views

site_url() returns with additional backslashes

I am using site_url() function and it returns the address as http:\/\/vip.local\/cc where I can see that WP automatically adds unnecessary backslashes. Is this for some escaping purpose? I tried using ...
0
votes
1answer
23 views

Can not manually create a database ( db, user, pass ) for a plugin

So I was working on a plugin and I needed to cache some third party API access, and I needed to manually create a database upon plugin activation or upgrade. The caching stuff needs a database host ( ...
0
votes
1answer
327 views

Uploading files using the Settings API

I've used the Settings API in the past to output text inputs and checkboxes but am unsure if I can use file inputs. My add_settings_field() is: add_settings_field( '1', 'File 1', array( $this, ...
16
votes
4answers
14k views

How to get WordPress Time Zone setting?

Can someone tell me how to get the time zone that is set in the WordPress Admin? For example, if the blog is set to Eastern time, I need this exact string to print out: US/Eastern This is for a ...
0
votes
1answer
775 views

Link a lightbox thumbnail to a post instead of opening the lightbox

On my website portfolio I use a heavily modified version of the Swatch theme from Woo Themes. The theme makes the thumbnails for my portfolio pieces link to the lightbox. I want the thumbnails to ...
1
vote
1answer
24 views

How to build an API as a plugin

I want to create a REST API endpoint for a wordpress site where I can get a JSON response for different queries. I have tried the tutorial here, but I cant seem to figure out how it works. Do I need ...
1
vote
1answer
528 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
13 views

Genesis custom post type pagination with custom taxonomy query loop

I am trying to create Genesis pagination for a page housing all posts from a particular taxonomy. I would use the many solutions given in this WordPress Stack Exchange but I can't figure out how to ...