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

learn more… | top users | synonyms (1)

1
vote
1answer
15 views

Replace text in post from cvs

I have constructed a post template that i want to use to all post. I use visual composer and some add ons . I need to create post with vcs file but i don't know hot to organize the cvs inside to do ...
0
votes
1answer
17 views

problem in inserting row to database

I have a custom table in database (named "wp_tasks") it has 5 fields. the problem is when i wanna insert the current time to this table it wouldn't, i checked for the first 4 fields, it works ...
0
votes
0answers
19 views

ajax form with multiple submit buttons and values

I am working in wordpress and I have an html form with two submit buttons with same classname and different value. I am passing the submit button clicked value through ajax and show it on the screen. ...
0
votes
1answer
39 views

Angular not defined

I have this code on my website and I don't know why the angular is not being defined and neither is the jquery. I'm fairly new to web development so I don't know what to do with the coding in order ...
0
votes
0answers
33 views

set external image as featured image

currently with the code below i am able to set an image from media library as featured image via functions.php below is my code functions.php set_post_thumbnail($post_id,$imageid); where ...
-2
votes
1answer
28 views

How can I search for usr_id within my date range with WP List Table?

I've fiddled around with the custom list table plugin for some time now but I'm not so much into MySQLi yet, so I hope there is someone here able to help me with my problem. My current code looks ...
0
votes
0answers
14 views

How to replace text in shortcode with custom fields? [on hold]

How can I replace text in to the shortcode ? Example : [ult_buttons btn_title="rezultati" btn_align="ubtn-center" btn_size="ubtn-custom" btn_title_color="#f2c121" btn_hover="ubtn-no-hover-bg" ...
-2
votes
1answer
17 views

Wordpress show error 500 on ajax call [on hold]

I have an issue in php call over ajax. If I put echo 'test'; in php file, that works fine and it alerts TEST, but if I put $myVar = 'test'; echo myVar; it doesn't work. I wish to emphasize that call ...
0
votes
0answers
14 views

Custom Taxonomy as Link

I have this image here http://i.imgur.com/5szTQNy.png which shows the download button I will be talking about. I am trying to make it so that when I put in a custom taxonomy box in the back end the ...
0
votes
0answers
13 views

Loop childpage content

I need help with how to loop out all children posts with a specific template, so basicly I need a loop the gather all pages that is a child and has a template named "puff". Is this doable??
0
votes
0answers
10 views

Cannot load media and I get “PHP Warning: Invalid argument supplied for foreach(”

if I don't have active debug mode, I can't see any media in back end (in Media menu or even as in created gallery in a post editor). When I turn on debug mode: define('WP_DEBUG', true); // Enable ...
0
votes
0answers
7 views

Wordpress select adding an extra post

I have this script that is supposed to pull all of the posts with the same category id as the page titles name. So if the page titles name is "non-profit" it pulls all the posts with the category ...
0
votes
2answers
21 views

How do you detect if a specific word is at the end of a the_title()

I have event listings that look like this PAPA ROACH AT THE PARAMOUNT IN HUNTINGTON ON APR 28, 2015 Im trying to remove everything after the last "ON" $s = the_title(); echo substr($s, 0, ...
0
votes
0answers
14 views

count click on link class on posts and add it to custom field

I have 4 links on each of my posts (facebook, twitter, etc ...), what I'm trying to do, is that everytime someone click on one of this link, i'll have a counter incremented, and store the reslut in a ...
-2
votes
2answers
38 views

Show content depending on url parameter [on hold]

I would like to show specific contents on my Wordpress page depending on passed url parameters. So if the url contains "nevada", like http://siteurl.com/?state=nevada&city=reno <div ...
0
votes
1answer
35 views

Add jQuery to WordPress page

I need to add jQuery library to WordPress page. The page is rendered by a plugin shortcode. I've used the below methods but I don't see it working for my jQuery script. I tried to add these below ...
-3
votes
1answer
17 views

Event plugin problem any one solve .? [duplicate]

bool(false) object(stdClass)#5590 (3) { ["price_struct_id"]=> string(2) "11" ["product_id"]=> string(4) "1294" ["display_order"]=> string(1) "0" }
-4
votes
0answers
21 views

OpenTickets Community Edition Plugin installation Error [on hold]

While installing OpenTickets Community Edition plugin it shows this error: bool(false) object(stdClass)#4529 (3) { ["price_struct_id"]=> string(2) "11" ["product_id"]=> string(4) "1294" ...
0
votes
0answers
23 views

Missing data in admin ajax calls on fresh install 4.2.1

I have a fresh install of wordpress (no plugins installed), and i noticed that $_REQUEST in admin-ajax.php doesn't have data fields. For example, $_REQUEST for adding new menu looks like this: Dump ...
0
votes
0answers
18 views

How to use woocommerce data attributes in the loop [on hold]

I have a custom product type and custom loop for listing woocommerce products $query_args = array( 'post_type' => 'product', 'tax_query' => array( array( 'taxonomy' => ...
2
votes
0answers
23 views

Making a follow button, Ajax not talking to php

I'm trying to make a user follow button using AJAX, but for some reason my AJAX isn't talking to my jk_user_follow function and setting the wp_set_object_terms. PHP function ...
0
votes
2answers
41 views

Search result page - display values from the result's metaboxes

i have this custom search-result page global $query_string; $query_args = explode("&", $query_string); $search_query = array( 'nopaging' => true, 'post_type' => ...
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
1answer
14 views

Oneall's Social Login plugin: can't get custom CSS working [on hold]

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

Tracking comment form submission with Segment.io plugin [closed]

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

Adding a third party SDK for Kitlocate into wordpress [on hold]

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 ...
0
votes
0answers
17 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
1answer
16 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
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
21 views

WordPress rating by views [on hold]

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
1answer
20 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
13 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
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 ...
1
vote
1answer
17 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
0answers
19 views

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

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

PHP printing… PHP [closed]

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
1answer
16 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
11 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
17 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
14 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
18 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
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. ...
0
votes
0answers
15 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
15 views

Filter woocommerce products with product type [on hold]

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' ); ...
0
votes
1answer
53 views

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

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
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
26 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 ( ...