0
votes
1answer
14 views

wp_mail() won't send mail when it's a variable, only when hard coded

I have coded a "follow post" script to which I wanna add the functionality of sending the user an email if a post they have followed has been updated. My script only sends an email if I hardcode an ...
1
vote
1answer
33 views

Minimising Database Queries when using Advanced Custom Fields

I'm working on a page which lists staff members for a large company and trying to minimise the number of times I'm forced to query the database as it gets quite complex and slow. 'person' is a ...
0
votes
1answer
23 views

get_template_part for custom post type content not working

I have a custom post type of Textorial with necessary template files: textorial-type.php single-textorial.php content-textorial.php The idea is to have a custom layout for the post type and use ...
0
votes
1answer
36 views

Protect custom form from SQL injection

I'm trying to understand how to protect my custom form from possible attacks. I send a data via a form, let's say userdata, then I read it: $userdata = $_POST['userdata'] I put it into an array to ...
0
votes
0answers
12 views

Trying to uswp_localize_script with Advance Custom Fields Repeater

I have an external javascript file that I am trying to change dynamically: Here is the Javascript that I want to be dynamic slides : [ {image : ...
0
votes
0answers
19 views

Google map API theme option page not displaying

I'm having some issues with the integration of a google map in my web site which can geocode an address before displaying the map with the correct location. So i have a script (it worked when i was ...
-2
votes
0answers
13 views

List Woocommerce product with its category ID - MySQL / PHP [on hold]

I am using a MySQL query to list all product addon variations(swatches), I am able to do this fine, as well as list the product the variation is associated with. The problem I have is listing that ...
0
votes
1answer
17 views

Adding editable content above posts

I want to have a content area above my posts where I can use the visual composer to edit the content. However, when I go to manage>pages and then to the page which has my blog posts, and try to add ...
0
votes
0answers
13 views

metabox is inserting only one value of checkbox [duplicate]

only one checkbox value is inserted on database,i want multiple checkbox value insert on database. What i want that, Multiple checkbox should insert on database and after insertion on database, ...
0
votes
0answers
17 views

wp-config.php keeps getting deleted after hack [on hold]

Recently my wordpress website was hacked. Basically the hacker got into some of my files and left a lot of malicious code bits that used things like eval(). I managed to clean up all (I hope) of the ...
-2
votes
1answer
40 views

JQuery UI plugin not working in IE7?

I want to use the dialog box from this plugin, but it isn't compatible for IE7. When I run it in Internet Explorer's IE7 emulator, the dialog box renders weirdly. It's partly transparent, ...
0
votes
1answer
24 views

wp wp_register_script function results type parameter missing

I used the following code wp_register_script('jquery', get_bloginfo('template_directory').'/js/jquery.js', false, '',false); wp_enqueue_script('jquery'); It includes the script as ...
0
votes
0answers
7 views

Plugin to create reverse RSS feed? [on hold]

I'm looking for a WP plugin that will create a custom "reverse" RSS feed that periodically releases old blog posts in reverse order. Alternatively, I'd like a feed that allows someone to read through ...
0
votes
3answers
29 views

Query & the_content() is showing in the header

This post is about two things: All the results of this query are posting to the header of the Page not on the content area as they should. Do you know of a solution as to why this is happening and ...
-1
votes
1answer
29 views

Change an option string to a function [on hold]

I'm creating an options page for my theme where I can insert a code in a text field as a condition for displaying sidebars in my website. Let's say I'm inserting this value in the text input: ...
0
votes
1answer
26 views

Authors divided alphabetically

I'd like to create a page on my site listing all of the site's contributors with info like their bio, URL, etc.. I found this code which is perfectly suited for my needs. However, what I'd like to ...
0
votes
3answers
25 views

Getting category URL with hyphens, not spaces

So, I am using this to get the URL: <a href="/category/<?php foreach((get_the_category()) as $category) { echo $category->cat_name . ' '; } ?>"> Which is outputting: ...
0
votes
0answers
8 views

Getting mail recipient ID rather than current user ID

I have a custom email function in functions.php, that when an admin approves a user sends an email to them notifying them of this. However I need to add some custom data for each recipient, that I can ...
0
votes
0answers
10 views

How can I change the markup of the comment_form() function?

I am currently creating a website on localhost. I am looking to change the cancel_comment_reply_link from being next to the "Reply to " section, instead being right next to the "Submit" button. I know ...
0
votes
2answers
16 views

Custom Plugin - Query CPT - Display Results

This code is going into a sample Plugin I am creating as a test using CPT and print them to a Page. I have been trying to get print_r() to give me an object. The custom post types are posting - ...
0
votes
1answer
25 views

Exclude the word comment from being referenced

Lately i m trying improve my SEO, and i found in Google Webmaster Tools that the mains keywords are 'Comment' & 'Read more' it s a bit frustrating. How can I say to the search egine dont ...
1
vote
1answer
14 views

Skt full width basic slideshow problem

Background: I am making a photography website and thought that skt full width is a good theme for the landing page. It worked out all right. Then I started to get fancy. I wanted my client to be able ...
0
votes
0answers
28 views

HTTP error on media upload (WP 4.1, Minamaze Theme) [on hold]

I'm desperate, folks. Total newb for everything scripting, but getting an HTML error when uploading a JPEG in WP 4.1. I'm running Minamaze. I didn't have any problems with this until a few weeks ...
0
votes
1answer
28 views

Why isn't my imported database showing up? install.php pops up and adds new tables to the database

I imported my live sites sql backup into xampp. I have named the new DB 'wordpress' and configured wp-config with db-name 'wordpress', user 'root', pw ''. Then I went to localhost/wordpress and it ...
0
votes
1answer
30 views

Wordpress popular posts by week code

I m trying make a code that list the popular posts by week. Until now i was able to creat a veiws counter and display the 4 popular posts. So what i still need is to make this query more accurate. ...
0
votes
0answers
12 views

Undefined Index in Theme Options [on hold]

With debug on, saving my custom Theme Options page is throwing up the following error: Notice: Undefined index: class in {directory}/theme-options-init.php on line 445 Warning: Cannot modify header ...
-1
votes
0answers
11 views

Mobile Website Images Distorted [on hold]

All of my posts look great on my website on the computer, but once I open my posts on our mobile website they look distorted. Is there a way to prevent this? Thanks!
0
votes
0answers
12 views

Need WordPress metabox with multiple checkbox [on hold]

I need a metabox with multiple checkbox,could somebody telss the code
0
votes
0answers
10 views

measuring the comments of my blog with events in google analytics [on hold]

for comments on my blog I have installed disqus . I set events in google analytics to measure comments in this way category empiezar by Disqus Action begins with New Comment I have given a value of 1 ...
0
votes
0answers
3 views

how to add tinymce_cleanup to wordpress editor

Basically I want to achieve this: http://blog.room34.com/archives/5075, because my wordpress install keeps inserting non-breaking spaces all over the place. Can anyone point me to a resource on how to ...
0
votes
1answer
10 views

Content template when adding a new page

Is it possible to have predefined chunks of code that can be inserted into the editor/textarea when making a new page? On my site i have a listing of local people, and although each page has ...
0
votes
0answers
20 views

Rewrite Rule Regex

I've added rewrite rule: add_rewrite_rule( 'slider-settings/(\w*)$', 'index.php?pagename=slider-settings&slider_id=$matches[1]', 'top' ); This url ...
0
votes
0answers
39 views

multiple checkbox value is not updating in metabox

It is displaying all the values checked,i want to only show checked value checked,but now it is displaying all the value checked,i am not sure how to write condition for that Please let me know. ...
0
votes
2answers
25 views

How to change display price in woocommerce based on role? [on hold]

I'm looking to display a different price based on a user role (wholesaler, customer, affiliate, preferred customer). I have the dynamic pricing plugin that displays these discounts once an item is ...
-1
votes
0answers
16 views

Tutorial Drag and Drop Page Editing

Does anyone have links to tutorials on creating drag and drop interfaces to either enhance or replace the tinymce like visual composer?
0
votes
1answer
16 views

Group Posts by First Letter of Title categories

Questions is a duplicate of this one: Group Posts by First Letter of Title However, I was unsure whether I could ask on that, or I had to start a new question, so I did the latter ;) I implemented ...
0
votes
0answers
7 views

Wp_customize_image_control Use Add Media

Is there a way to use the Add Media in the wp_customize_image_control for Theme Customizations? The default image_control is very bare bones and only allows uploading of an image. There's no selection ...
2
votes
1answer
24 views

Organizing media uploads

One of my clients wants to transfer his WordPress website to my server. The problem is his website doesn't use sub-folders in his upload folder, and he has more than 1,000,000 files in the root of his ...
0
votes
1answer
15 views

WooCommerce products contain single attributes with different keys within available variations [on hold]

This is the first time I've really delved into WooCommerce customization. The issue I'm having is in trying to create a custom product page with a custom buy table (using buttons instead of ...
0
votes
1answer
17 views

Plugin loaded, but not running

We are using a plugin (https://github.com/ADeMen/GOOVAIN/) that is supposed to provide a 'get shortlink' button along with some database updates. It should look like this. This worked perfectly ...
0
votes
0answers
7 views

Exclude posts by a guest author still making it accessible from direct url

How to exclude posts by a guest author from category, archive, search and tag pages but still accessible from direct url. I do not want to delete these posts, but is it possible that they are not ...
0
votes
1answer
15 views

Local copy of site returns 404 for all content outside of core .php templates

It appears that this is a common problem, but I have tried every fix I've seen on this forum and still cannot get the local copy of my WP site working. I can view my homepage at localhost/mysite, and ...
0
votes
1answer
26 views

Confused by the behaviour of “front page” / “home” templates

I stumbled upon a confusing issue while trying to customize the appearance of the front page of my blog (blog.example.com) without changing the behaviour of the other blog posts index pages ...
0
votes
1answer
28 views

add_rewrite_rule() not working

I need to pass a property reference the last part of a URL to search the database for an entry, eg, http://example.com/cottage-details/G638/ I need to pass the G638 into an array for my ...
0
votes
0answers
11 views

Subdirectory and domain multisite installation

I have this structure: http://example.com/ http://example.com/site2 http://example.com/site3 http://example.com/site4 ... Now, I want http://example.com/site4 to be http://mycampaignwebsite.com/ ...
0
votes
0answers
8 views

Second Order Clause Ignored (Users)

So I'm trying to produce a staff list using the contents of the user table. Any user that is listed as a admin, editor or contributor is a member of staff. Here is the query: $sql = "SELECT u.ID, ...
1
vote
2answers
38 views

Create a page template with No Footer

I want to create a page template that doesn't use footer. Removing get_footer() will not work in this case. Because my theme adds the stylesheets and scrtipts after the footer (before /body) and if I ...
-2
votes
0answers
14 views

how to create question and answer website? [on hold]

My requirements User will pay to get register . After registration he will go to different categories and ask questions . there are 3 different plans for user to get registered *Silver (user can ...
0
votes
0answers
9 views

How do can I pass data retrieved from a filter to template files?

I wrote this class to display only the current top level menu item's children: class deseng_navSplit { var $sorted_menu_items; var $args; function __construct($x, $y) { ...
-3
votes
0answers
24 views

What is wrong with this contact form? [on hold]

I can't find what is wrong with this contact form. I get the message that the letter has been sent although I get no email in my inbox!.. I have made the contact form based on ...

15 30 50 per page