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

learn more… | top users | synonyms (1)

-1
votes
0answers
9 views

.Htaccess file for subdomain - Getting 500 internal server error

What is default code of .htaccess file for subdomain? Accidentally I have deleted .htaccess file from root of subdomain and now getting 500 internal server error. I think it is only because of ...
0
votes
1answer
519 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
3answers
339 views

How to put a form with php code into a variable or shortcode?

I'm trying to put my frontend form into a variable or a shortcode so I can wrap another shortcode around it (specifically Bainternet Post Creation Limits). My form has PHP code in it so I'm not ...
0
votes
1answer
284 views

Getting taxonomy images to display on single-post with their terms

Having some trouble with taxonomy images plugin. I am on single-post.php and I want to display my post's taxonomy terms & the term's associated images. Ideally, I'd like the taxonomy description ...
-1
votes
1answer
706 views

Using the wp_remote_post response body

I don't have great PHP skills, but can usually fumble my way through with a little bit of direction, so I'm hoping someone on here can help me. I am doing a http post submission from a form to a ...
0
votes
1answer
33 views

How to display html code on homepage

I have some HTML code wrapped in a div tag that I'd like to place on the homepage. Because I use a static page for a homepage, I'm guessing I should use is_front_page() and I should place the desired ...
2
votes
2answers
705 views

get_posts meta_value is serialized array, how can I grab specific posts with combination of meta_key/meta_value[0]->is_featured?

I've a postmeta key saved in DB: mediSHOP_product_extras It's value is Unserialized: Array ( [0] => Array ( [is_slider] => 0 [is_featured] => 0 [in_stock] => 0 [video_url] => ...
0
votes
1answer
809 views

Saving/Writing/Adding file to upload folder

Within a plugin I am generating an image, I would like to save this image to the upload folder and update the WPDB with the location of said file. I cant find any build in wordpress functions to ...
4
votes
1answer
352 views

Using Vagrant for customizable Wordpress Multi-sites

Background: My partner and I have a goal to create a customizable vagrant project that uses Wordpress multi site, as a local development environment. Ideal Use Case: Various developers on our team ...
0
votes
0answers
32 views

Handling Massive Amounts of Data in a Wordpress Plugin

I've been working on my own version of a Youtube Post Importer plugin for Wordpress and I've run into a bit of a wall. I'm using the 3rd version of the Youtube Data API seen here ...
0
votes
0answers
8 views

manually login working on local but not working on live server in wordpress

i want to programmatically login a user into wordpress its working fine on local but on live server it is not working here is my code $username = "admin"; $user = get_user_by('login', $username ); ...
1
vote
1answer
763 views

Error: options page not found

This error is really well known and every where I look its either I am not doing: <form method="post" action="options.php"> or I am not registering my options, which is not the case as seen ...
0
votes
0answers
11 views

wp_update_post set value to null

Is it possible to set a field to NULL using wp_update_post? I'm trying the following: wp_update_post( array( 'ID' => $future_orphan_id, 'post_parent' ...
-1
votes
0answers
29 views

Logout Button does not appear after logged in

After users log in, they should be able to logout but the problem is there is no logout button. I am using slide down panel. Please help me. html <div id="toppanel"> <div id="panel"> ...
0
votes
0answers
25 views

two wordpress sites, two themes, one database, same content

I am doing research about wordpress and there are many interesting stuff to learn, i browse the wordpress forum and i found a post about duplicating site.. or multisite.. I am not sure exactly how it ...
1
vote
1answer
33 views

How do i use this jquery script on a wordpress site?

I've been struggling with trying to set a jquery list file on a wordpress site. This is the script and html in a codepen: http://codepen.io/javve/pen/bBfgD My question is. The examples has html with ...
-4
votes
0answers
11 views

Align Form with background image [on hold]

I am trying to create a form (for mailchimp) that lines up with white spaces in a graphic I am using as a background. In addition, I need the button to be an image which I already have. I have fiddled ...
1
vote
1answer
34 views

Add / Update Custom Fields After Select Pictures in Media Window

I just added a button called Add Slider in Add/Edit Post Page. Here's my code in my functions.php : //Add button to create slider add_action('media_buttons','add_my_media_button',15); function ...
0
votes
0answers
12 views

Limit posts on custom post page using WP_Query object

Below is my portfolio page using a custom post type. Is it possible to limit the number of posts to display at 6 and then add pagination to the page if 6+ posts are added. Would I add the code to the ...
0
votes
1answer
29 views

add the value of a variable returned in a while loop [on hold]

I am trying to add the values of a variable together and display the total value. I am using posts to posts to create a connection between my custom post types 'recipes' and 'ingredients'. the ...
0
votes
1answer
7 views

Why, when moving a WordPress multisite network, have my theme customisations stopped working?

I have recently moved a multisite network to a new domain. There is only 1 site in the network currently (I'm in the process of building the sites for the network and I am pushing this one to a ...
-3
votes
1answer
39 views

Can you not edit the HTML and PHP of your WordPress without paying?

Sorry for the noob question. I'm new to WP. I'm not seeing where I can edit the HTML and PHP of my blog. I see a bunch of GUI options to change colors, etc. but nothing to change my blog's source ...
-4
votes
0answers
16 views

i want to add a class 'page-scroll' to subscription menu.and rest of menus have a class 'wobble-bottom' in wp_nav_menu,how to do this? [closed]

<ul> <li><a href="#" title="">Home</a></li> <li><a href="#" title="">About</a></li> <li><a class="page-scroll" ...
0
votes
1answer
619 views

Unexpected token ILLEGAL, even on clean install - jquery-issue?

update i get even more issues and errors; POST http://literaturen.org/wp-admin/admin-ajax.php 200 OK 1,39s jquery...=1.11.0 (Zeile 4) GET ...
1
vote
0answers
39 views

How to manually change current date to post date in frontend?

Well I want to know how the viewer on my website can change the wordpress current date to the post date (preferable from the dropdown as Day and Month). So if today's wordpress date is 22 December, ...
1
vote
1answer
734 views

Using PHP to toggle stylesheet and header image, set in cookie

I haven't done a lot of work with cookies or Wordpress before so I think I've been a bit over-optimistic in my quest :p I have created two themes for my site, night and day. I would like the user to ...
2
votes
3answers
573 views

How to export/import theme customizer settings?

I am wondering if it is possible to export theme customizer settings(theme_mods) to be imported into another install of the same theme. I know that the settings are saved into the database so I am ...
0
votes
1answer
1k views

Use an anchor link to open an iframe inside a Wordpress page

My Question: How do you make an anchor link to an offsite webpage that when clicked opens up the offsite webpage as an iframe that is inside a new Wordpress page where the Wordpress header and footer ...
0
votes
1answer
22 views

Load php function with AJAX on modal window

On a movie information wordpress theme i am developing, i have an href with text "watch trailer" on each cover of all movies. This brings a modal window, and that is working already, but i want to ...
0
votes
2answers
35 views

Show different website layout if no sidebar added

I have a question about website layout with and without wp widges in sidebar. Here is the code i have for my registered sidebar. <?php if ( !function_exists('dynamic_sidebar') || ...
0
votes
2answers
475 views

You do not have sufficient permissions to access this page while making a plugin

You do not have sufficient permissions to access this page. This is the error i am facing while making my own plugin.Actually, i want to link to another page. Wordpress version is 3.8.1 I made a ...
0
votes
1answer
375 views

Include a specific post to the query_posts and remove it if it is already in the returned list

Bare with me. Firstly, here is my whole script for my featured slider articles: <div id="featured" class="<?php if ( $responsive ) echo 'flexslider' . $featured_auto_class; else echo ...
-1
votes
0answers
14 views

Replace iframe with php for implementing common header/footer

I have a multisite WP and have utilized iframe for common headers and footers. But when pages load on other sites than main there is a delay in loading header and footer. Here is the code I have in ...
3
votes
1answer
42 views

Walker class: Problems with understanding how walk() method can be called without error

I am struggling with understanding how WordPress uses the Walker class. In particular, I don't understand the walk() method (I think). First, let me explain what I understood: When calling ...
1
vote
1answer
44 views

Why use %d in php when in function

$mid = $wpdb->get_col( $wpdb->prepare("SELECT meta_id FROM $wpdb->postmeta WHERE post_id = %d AND meta_key = %s", $post_id, $meta_key) ); Can any body tell me why we are using %d and %s ? ...
-1
votes
0answers
12 views

Create an order in WooCommerce using S2Members API and wc_create_order [closed]

I'm trying to use S2Members 'Payment Notification API' to create an order in WooCommerce when a payment is processed. I'm going to be batch shipping my product once a month to all members who've paid ...
2
votes
3answers
417 views

Dynamically add id to heading tags

How do I add an id attribute dynamically to every heading tag on a wordpress website using php? I wanted to make it so that for every heading tag (h1, h2, h3, h4, h5, h6) I have a unique id attached ...
0
votes
1answer
21 views

how to add number value in front for variable [closed]

Hi there my question is very simple, is there a way by which we can add a value in the end of the variable a numeric value. like we have a variable $tota $tota1 $tota2 $tota3 each have different ...
0
votes
1answer
1k views

Let users upload image(s) to the post from front end

I want to enable logged in users (Wordpress) to submit posts from front end (among with other data). My form is working great, I add custom post meta data which I later display on custom post page. ...
1
vote
1answer
71 views

wp_kses and magic quotes

In the wp_kses codex page it says: You have to remove any slashes from PHP's magic quotes before you call this function. I am new(ish) to PHP and I wiki'd Magic Quotes and it was apparently ...
0
votes
1answer
368 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
14 views

Global Signup/Login in two wordpress site some like similar to stackoverflow?

I have two different wordpress installation at two different server one at mydomain.com and other at subdomain.mydomain.com having different database. My question is how I implement global ...
0
votes
0answers
10 views

RSS Error: WP HTTP Error: Could not resolve host: planet.wordpress.org; & all amazon plugins are down

installed wp verson 4-1 rc (release candidate) On my admin dashboard i have noticed that the feeds (other wordpres news, wordpress development blog, and incoming links) are no longer working. ...
0
votes
0answers
6 views

Uploading high ress images: image data does not exist

I have a reason to let users upload High Ress images. My hostingcompany doesn't allow me to upload more then 8MB. To be able to upload more MB's I did the following: I created a php.ini file and ...
0
votes
1answer
22 views

Add bcc to contact from on wordpress

I found a script for making your own contact form in your wordpress site (without plugin) Now, I want to add more clients email accounts as a BCC or CC. how can I do that? This is me code which ...
0
votes
1answer
18 views

Use custom get results query to show posts WordPress

I have this code before to show posts. $query_args = array( 'post_type' => 'post', 'posts_per_page' => 4, 'meta_key' => 'Views', ...
1
vote
2answers
36 views

Password protecting content in custom template

I'm trying to password protect content in a custom page template, however when i enter the password i assigned in the backend, it doesn't authenticate, instead just reloads the page upon submission. I ...
0
votes
0answers
21 views

Should I store multiple data in a single wp_post field

I hope this is the right place to ask this question. I have chosen to work in a Wordpress environment so this should apply here. I have to design an application that will store hundreds of thousands ...
0
votes
2answers
544 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
1
vote
1answer
303 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 - ...