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

learn more… | top users | synonyms (1)

1
vote
2answers
100 views

Converting HTML Template to Wordpress Theme

While I was trying to convert a Static HTML page to Wordpress Theme , I had an issue . the page Doesn't run properly After Checking Google Chrome Console it turns that it loads the CSS file with the ...
0
votes
0answers
32 views

Custom post type in theme page

I am having a problem with a website I'm currently working on. I am using the theme Html5-Blank by Todd Motto and Advanced Custom Fields for the content. The problem is this: I am using a custom post ...
0
votes
0answers
34 views

AdWords API with WP

Does anyone know a moron-proof way or guide to use the Google AdWords API with Wordpress? I can write PHP to a vaguely acceptable level. Just looking to populate a table with some basic live ...
0
votes
1answer
31 views

Sending email from inside a plugin using PHP PEAR

I have a plugin that I have developed, part of this plugin will hopefully to send emails with attachments. Before I started with Wordpress I did something similar with PHP using the PEAR class as you ...
0
votes
0answers
133 views

Add title and caption to thumbnail image on mouseover

I'm trying to add a simple mouseover image to display the images title and caption data. I've added the js in my scripts file which is being called okay yet the rollover is not working. Essentially I ...
0
votes
1answer
32 views

Insert plugin content before body end

How do I make plugin's content appear in a place I want? For example let's say I have a plugin that output's a paragraph: echo "<p>foo<p>" If I do this it will appear on a page outside ...
0
votes
0answers
37 views

export high ress images to pdf

I want to export a webpage to PDF. I'm using the wp-mpdf plugin which is based upon mpdf. The problem that I'm having is that I want to be able to export a high ress image if that is on the page. ...
0
votes
0answers
11 views

Attachments doesn't update

I did use wp_attachments to display images from posts by url. With that in functions.php 'function twentythirteen_the_attached_image() { $post = get_post(); $attachment_size = ...
0
votes
0answers
48 views

custom function for wp_list_categories

I need to write a custom function for wp_list_categories so instead of displaying a hierarchical list of links they are instead a list of checkboxes with the parent terms being displayed as h3 tags. ...
1
vote
3answers
110 views

Allowed memory size of 268435456 bytes exhausted (tried to allocate 64 bytes)?

I am getting this error. I have increased the memory limit upto 512M. I have more than 4000 posts with so many data. Website is working fine. But when I am trying to access the custom post type page ...
0
votes
0answers
61 views

How to get images inserted by shortcodes ultimate plugin

I have inserted images using shortcodes ultimate plugin.The shortcode is [su_custom_gallery source="media: 4230,4229,4228,4225,4227,4226" limit="40" link="lightbox" width="900" height="600" ...
0
votes
1answer
32 views

Increase returned number/pages on pagination

Im trying to increase the numbers/Pages for my pagination. I have 64 pages set, and this is how it shows now: « Previous 1 2 3 4 … 64 Next ». How do I control so I can show more numbers? In my case i ...
0
votes
1answer
47 views

Extending the WP_Widget_Text class

I am trying to alter the output of the default WordPress text widget. Since the widget is written in OOP I hoped it could be a simple deal of extending the class and overwriting one method – but it ...
1
vote
2answers
37 views

Shortcode API: How to get name that matched shortcode RegEx?

I am looking for a way to reproduce what is described in the documentation: An overloaded shortcode callback. According to the docs, the $atts array will contain the string that matched the shortcode ...
0
votes
3answers
73 views

Can we have a php “page” without a WordPress “page”?

Somewhere off of the homepage we need to show a container page which does some stuff with custom post types. Actually it doesn't matter what it does, my point is it needs to exist and be reachable ...
0
votes
1answer
50 views

WPDB secure custom form

I'm creating a custom form to update rows in a secondary MYSQL DB, different from the one of wordpress. This form is public and every user can access it. So I've created a plugin and I'm using also ...
0
votes
0answers
39 views

How to merge 2 WordPress sites?

I have 2 WordPress sites, A and B. Each of them has users and posts. Now, I want to merge these sites. Points to be noted- A has 1000 users and 2000 posts. B has 500 users and 3000 posts. There are ...
0
votes
3answers
35 views

Order posts randomly, not by date

I'd like to know how to order by "random" instead of by "date". Can someone help me modify this so it gets posts randomly instead of by date? $posts = ...
0
votes
2answers
27 views

Call featured image url

How do I get the URL of my featured image? I am using buffy and I can Call The URL of The post and so on, but can't figure out how to Call The URL of The featured image.
0
votes
1answer
26 views

“Where… like” query not working as expected

I have the following query: $results=$facilities=$mydb->get_results("SELECT facility_name from facility where facility_name like '%".$facility_name."%' LIMIT 0, 10"); It is not working ...
0
votes
1answer
38 views

How to redirect all pages of a custom post type [duplicate]

Here's the deal. Let's say I have a custom post type called "subscriptions". Under this post type there are pages like the following: mysite.com/subscription/my-first-subscription ...
1
vote
1answer
30 views

Network installation giving errors when viewing or adding a user

I have just installed a fresh version of WP which I have turned in to a network install (using the instructions found here). All seemed to be going well, and I was able to add a new site ...
0
votes
0answers
16 views

Wordpress Custom Widget Strange Behaviour

I have developed a Custom widget plugin with a dozen of input fields. Some of those input fields load Fabtastic Color Picker. When I add the widget in any widget area, the color picker loads very ...
0
votes
0answers
30 views

Custom pagination for custom page, how?

So. I have a custom page, where im using two shortcodes for a plugin that fetches rssfeeds, WP Rss Aggregator. It creates two columns with feeds, and both of these feeds have pagination, both columns ...
0
votes
1answer
69 views

Using wp_localize_script to store the template url into a variable to use in JS

I was trying to store the template url (bloginfo(template_url);) into a variable so I could use it in my JavaScript. However, I realized this wasn't possible and someone alerted me to ...
0
votes
2answers
46 views

Deeper editing of index.php and single.php

I'd like to fully customize the CSS and HTML of the main blog page (index.php) and the individual post page (single.php). However, looking in index.php and single.php, I don't see how to get at the ...
0
votes
1answer
90 views

How to get private property in parent class into extended class?

I am not sure if my function is firing before another funciton or if I am having issues with the $this variable when I am extending my class. I am creating a function in my functions.php file. Here's ...
1
vote
1answer
45 views

WP Plugins - Use includes to display page content

So I have a plugin I have been working on. It adds a menu and multiple submenus. Each submenu page contains a form, this form is created in a function called add_content_submenupagename. This ...
0
votes
0answers
15 views

remove php funcion

I've got customized plugin like this one : <?php $media_view = Cookie::get('media_view'); ?> @if(isset($media_view) && ($media_view == 'grid_large' || $media_view == 'grid')) ...
0
votes
0answers
41 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
1answer
50 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 ...
0
votes
0answers
28 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 ); ...
0
votes
0answers
24 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' ...
0
votes
0answers
104 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
53 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 ...
0
votes
0answers
27 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 ...
-3
votes
1answer
59 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 ...
0
votes
1answer
13 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 ...
0
votes
1answer
81 views

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

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 ...
1
vote
0answers
72 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, ...
0
votes
2answers
62 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
1answer
226 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 ...
3
votes
1answer
62 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
72 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 ? ...
0
votes
1answer
38 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 ...
1
vote
1answer
159 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
23 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
44 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
35 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
34 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 ...