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

learn more… | top users | synonyms (1)

0
votes
2answers
12 views

Only load certain artists on this page

I have a wordpress page which loads all the artists in two columns... here is what I believe to be the relevant bit of code <?php global $paged; if ( is_front_page() ) { ...
0
votes
1answer
22 views

Nav-Menu not showing up

I would love for somebody to please help me because somewhere I am really miss understanding what WordPress is telling me. Alright so within my header.php I have the following code. <div ...
0
votes
2answers
27 views

How to add text to the start of all comments?

For example somebody replies- Hi! This is a Comment! but is published as Text- Hi! This is a Comment! Any ideas folks? I'm totally stumped. I want to add the extra text so it appears within the ...
0
votes
3answers
50 views

How to use return in my custom function instead of echo

I'm creating a function in functions.php with a custom hook, and from what I've read somewhere, it's good practice to return instead of use echo in a WordPress function? Correct me if I'm wrong. ...
0
votes
1answer
25 views

How to print redirected query string variables to the page?

I have a basic redirection set up: function example_add_rewrite_rules() { $year = '(\d{4})?'; $make = '([a-z]{1,20})'; $model = '(.+)'; add_rewrite_rule( ...
0
votes
0answers
31 views

Contact page won't send mail

I've installed a plugin for SMTP mail function. It works like a charm when testing, but my theme's contact page wont send mail. Here is the contact page template: /* Template Name: Contact */ ...
0
votes
1answer
29 views

TCPDF get_post_meta outside the loop

I want to be able to export a html page to PDF. I downloaded TCPDF (mainly because it allows me save High resolution images and shrinks the filesize.) The TCPDF folder is in my theme folder. If a ...
0
votes
0answers
18 views

auto post with custom date php wordpress

When i upload the image from wp_media, this below code runs: add_action('add_attachment', 'auto_post_after_image_upload'); // Wordpress Hook function auto_post_after_image_upload($attachId) { ...
1
vote
2answers
77 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
27 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
22 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
25 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
1answer
53 views

Dropdown filtering extremely slow

I have two dropdowns on my frontpage. The first dropdown selects a custom post type, and the second selects a location. The second dropdown is filtered based on the selection of the first dropdown ...
0
votes
0answers
76 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
22 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
32 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
10 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
31 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
68 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
45 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
28 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
39 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
32 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
70 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
37 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
37 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 ...
-1
votes
0answers
34 views

where to find database integration code (query code) in wordpress theme?

I am new to wordpress. I have downloaded a book your travel theme and confused to locate from where this theme is communicating with database. It register sucessfully, update table before final ...
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
22 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
23 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
29 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
0answers
18 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
15 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
25 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
38 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
44 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
55 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
38 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
37 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
47 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
25 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
23 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
61 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
51 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
20 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
48 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
11 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
46 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
65 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, ...