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
20 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
10 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
15 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
0answers
25 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
21 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
10 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
10 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
8 views

measuring the comments of my blog with events in google analytics

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
18 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
35 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
24 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
15 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
14 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
6 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
18 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
14 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
14 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
25 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
23 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
9 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
36 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
23 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 ...
0
votes
0answers
8 views

setup network in IIS and subdomain

I have a WP site with this site url: subdomain.example.com under IIS web server and now I need to setup multisite. I added in my wp-config.php: /* Multisite */ define( 'WP_ALLOW_MULTISITE', true ); ...
0
votes
1answer
16 views

Removing admin menu items with white spaces

function remove_admin_menu_items() { $blog_id = get_current_blog_id(); if ($blog_id == 1) { $remove_menu_items = array(__('Team Members'),__('Policies'),__('Comments')); } else { ...
0
votes
0answers
11 views

why nl2br() is adding an extra <br>?

I store the text with wpdb->insert. While retrieving it with wpdb->get_results I echo it with nl2br() function to preserve the new lines (or it will be echoed without line breks). Problem is ...
-1
votes
0answers
9 views

How to add icon “play” to “video image thumbnail” [on hold]

I want to add icon "Play" Video to Video image thumbnail or any pictures in Wordpress. (Ex: in the picture bellow) I had try to find plugin support this but I haven't found it. Is there any way ...
-3
votes
1answer
33 views

How would one concatenate a variable inside a url? [on hold]

How would one concatenate a variable inside a url? <a href="<?php echo esc_url( home_url( '/' ) ); ?>team-names";?><?php echo "/" .$term->slug; ?>" >
0
votes
1answer
28 views

Render custom taxonomy query as single template

Im developing a "catalogue" plugin using a custom post type and a custom taxonomy. What I want now is to display the custom taxonomy as a single page. That means I if the taxonomy term "Popular Items" ...
0
votes
0answers
9 views

embedding video that has only play and pause options

I'm trying to embed a video on my site that has only play and pause button at the center. No other controls needed. I'm using the following codes but cant achieve the play/pause system. <video ...
0
votes
0answers
15 views

How to center dynamically loaded widgets [on hold]

I currently have a widget box that dynamically loads 3 boxes. 2 Boxes are ALWAYS loaded the moment a user visits the website. However, the third box is a "Recently Viewed" box that displays products ...
0
votes
0answers
12 views

WPAlchemy: Uploader with preview (like Featured image) [on hold]

I am using WPAlchemy to generated custom meta boxes in the WP backend. I was wondering when using the Media uploader if there’s a way to show the uploaded image in the meta box (like in the built-in ...
0
votes
1answer
18 views

update_post_meta is Updating with two page id

I am writing a code to count the number of views of post. For that I am using update_post_meta and passing appropriate parameter. I am calling a function on add_action('wp', 'function_name'); in ...
0
votes
1answer
21 views

Custom Login Form - Redirect user to login page if not logged in

I have integrated custom login form as mentioned here and embed this custom login form to a WordPress page, via shortcode [dm_login_form]. After that I have integrated access control plugin here ...
0
votes
0answers
11 views

Plugin settings not saving and 404 is generated on submit

I am creating a WordPress using https://github.com/nadeem-khan/WordPress-Plugin-Template as a starter template. This is my settings class file named 'class-xyz.php': <?php if ...
0
votes
1answer
12 views

How to add “back to top button” in wordpress backend product list page and order page? [on hold]

Hello i want to set "back to top button" in the product list page and order page in the backend of the admin area in product list page and order list page. Anyone help me how to add this button or ...
2
votes
2answers
35 views

SQL to check how many sites a user is a member of

I have a multisite installation and I'm working on creating a reporting plugin. One of the things that I would like to do is show the number of sites a user is a member of. Right now, I'm using ...
1
vote
0answers
18 views

Theme elements not translating

Ive got a theme that is set-up for translating but didn't come with any translations. I used poedit to automatically detect the strings, and subsequently translated it in full. However certain ...
0
votes
0answers
17 views
+50

Sorting terms individually for each post

I have a custom taxonomy named author containing multiple terms. The default output order in the front end is alphabetically. But I like the authors to be ordered individually per post, e.g. First ...

15 30 50 per page