0
votes
1answer
819 views

Link a lightbox thumbnail to a post instead of opening the lightbox

On my website portfolio I use a heavily modified version of the Swatch theme from Woo Themes. The theme makes the thumbnails for my portfolio pieces link to the lightbox. I want the thumbnails to ...
0
votes
0answers
2 views

Get Commentor IP When Marking Comment As Spam

What I am trying to do is create a list of IP addresses each time I click Spam on a comment. The only issue I have now is, how do I get the commentors IP address inside this function. This is what I ...
0
votes
0answers
15 views
+50

How to iterate within Magic Fields Group foreach loop?

Okay so I'm using Magic Fields 2 on an old WordPress project (rather than ACF unfortunately) and I've got some confusion happening while I'm writing PHP. Basically I'm on a page template that calls ...
0
votes
2answers
485 views

How to query for posts (in hierarchical custom post type) that have children?

I'm trying to figure out how to query for posts in my hierarchical custom post type, presumably using WP_Query that have child posts. I can get all pages that don't have children by setting ...
0
votes
1answer
471 views

Configuring multi-site with domain mapping

We have a client that runs 15 or so e-commerce and brochureware sites for his customers. What they want to do is add a WordPress blog to each of these sites, for example: www.site1.com/blog ...
0
votes
0answers
3 views

How do I hide certain custom taxonomy terms from meta box in Add New Post page?

I've created a custom taxonomy called 'podcasts' but I only want a certain subset of users to be able to create posts under a certain podcast term. E.g. List of podcast terms: Music Podcast Film ...
1
vote
2answers
1k views

Wordpress multisite in subdirectory, not root, and remove base folder from url

I might be misreading but I can't find a solution to the following need: I want to install Wordpress in a subfolder of my www directory, let's say www/wp. I then want to add two blogs to the multisite ...
0
votes
1answer
14 views

How should I use wpdb class to submit a form in admin dashboard?

I want to create a plugin for the admin to write his everyday message in the dashboard & display it on his website. I have two files, dailymessage.php and messageform.php. In dailymessage.php I ...
0
votes
0answers
6 views

Problem in adding new site on WP multisite

It's for two or three months that this problem exists in WordPress multisite and I'm still waiting for a solution or an update. When adding new site, I get this error: Warning: preg_match() ...
0
votes
1answer
826 views

wp_query orderby random do not repeat infinite scroll - one loop

I have found a lot of documentation on solving this issue with multiple loops, I'm finding it hard to see a solution for one custom loop. Problem: I'm using infinite scroll to load in the next page ...
0
votes
0answers
6 views

How can I paginate search results from search in custom plugin and tables?

I've been trying to get this done for hours now and it's just not working. I have a custom plugin that has a search box on the front-end that one can use to search for data from my custom tables. ...
2
votes
1answer
691 views

Admin Area Custom Type Search By Meta Fields Without Title & Content

I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code: ...
0
votes
1answer
25 views

Sort users by “birthday” using WP_User_Query

I have created user meta that holds user birthday (birthday). birthday is date field. Now i am trying to figure how to sort (get) all users that have birthday based on specific month. I have ...
2
votes
1answer
1k views

Integrating the Wordpress admin panel with a frontend theme

I am building a Wordpress membership site where I need to collect user generated content in form of: -posts -events -classified ads I am using three plugins to accomplish this. However I need to ...
0
votes
1answer
7 views

MailPoet Newsletters Ajax Confliction For Non Logged In User

I have a wordpress website which has email subscription form on frontend. The problem is when the admin is logged in, form works perfectly but when any visitor or any non logged in user fills their ...
0
votes
0answers
11 views

How to set number of posts to display in archive

I am trying to add a line or two of code to what I am using to call posts to my archive pages. I've tried a lot of things, but because I'm using a piece of code that is a little irregular, ...
0
votes
0answers
8 views

change upload dir

Currently my images are like www.example.com/wp-content/uploads/2015/06/xxxxxx-yyyy-zzzz-photo-no.jpg I want this like www.example.com/wp-content/uploads/xxxxxx/xxxxxx-yyyy-zzzz-photo-no.jpg or ...
0
votes
0answers
6 views

Display attribute if attribute before is selected

After many hours of research I have decided that I need some help. I am currently building an online jewellery store using Wordpress and Woo commerce. I am attempting to create three sets of ...
0
votes
0answers
17 views

How to update posts via PHP in wordpress

I need to do the exact same what "update" button in the WP Backend does, but with PHP (and I know it has been asked 10'000 times, but the situation isn't that trivial :( ) wp_update_post should be ...
2
votes
2answers
49 views

How to change user_login with wp-cli?

How to change the username with wp-cli? This does not work: wp user update old_login --user-login=new_login
0
votes
1answer
630 views

Load post attached images on a single page site with fancybox

I'm trying to make a single page site that will display posts as thumbnails in some part. Then if a thumbnail is clicked, I want all the images contained in this post to be loaded with fancybox while ...
0
votes
0answers
6 views

Create a Page Automatically According to the post

scenerio : i Am publishing 3 Posts 1. Part 1 for Automobile 1 2. part 2 for Automobile 1 3. Part 1 for Automobile 2 Also im selecting Automobile as a Taxonomy. So now the category page for ...
3
votes
1answer
2k views

Restrict custom post type to only site administrator role

How can I remove this custom post type from being shown in the dashboard for non admin users? /* Add Websites Custom Post Type */ add_action( 'init', 'create_website_type' ); function ...
-1
votes
0answers
9 views

Errors when activating any theme

I get the below errors even for Twenty Fifteen theme, or while activating any theme or plugin, on my site. The errors below were generated when I was adding the theme Symmetric, but even for Twenty ...
0
votes
0answers
6 views

Is there any plugin to sum items in a list and then compare the total in some previously registered stores? [on hold]

What plugin/code do I need to use to sum selected items in a list of products and then to compare how much the total will be in a few stores previously registered? Example: I have three supermarkets ...
0
votes
0answers
4 views

wordpress profile builder plugin customization [on hold]

i want to registration in wordpress with profile builder plugin and force validation remove from username. when i am register with email.please help me. Thanks Rashid
1
vote
4answers
553 views

Updating wp_options with an array on save_post results in duplicated entries

I'm not entirely sure this is Wordpress' fault, but I figure I'd ask anyway and see if anyone else has experienced any problems like this before. I'm trying to save an array to a wp_options table ...
2
votes
2answers
5k views

Images not showing after moving site (but path id OK)

I moved (actually copied) a wordpress site (http://inglesen100dias.com/) to a new server and domain (http://blog.inglesen100dias.com/). I followed the process described in Wordpress' website ...
0
votes
0answers
7 views

How to manage saving custom field from Quick edit and Post Save using save_post action hook without colliding each other?

I's following Rachel Carden's tutorial on creating Quick Edit and Bulk Edit, and grabbed her full work from her github repo. I managed doing everything fine and I made a checkbox instead of radio ...
0
votes
2answers
614 views

Insert data from custom created PHP page into wp_postmeta table

I am working with a Wordpress site and have created a custom page in /home/planmyme/public_html/php/ with the name response.php. On this page I am getting a value to insert in the wp_postmeta table ...
0
votes
0answers
5 views

is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript

Is there a predefined JavaScript function that can be use to check whether the site is being previewed in the Customizer which returns true if it is or false if it's not, just like what ...
0
votes
0answers
10 views

Saving plugin settings - ERROR: options page not found

I've created a form for my plugin settings and set the action attribute of the form to "options.php" but when I submit the form I get "ERROR: options page not found." add_action('admin_menu', ...
0
votes
0answers
10 views

Formatting post content to exclude gallery

I have this code which takes the first gallery for a post's content, and formats it with more code preparing it for slideshow usage with css and js. $gallery = get_post_gallery_images( $post ); ...
1
vote
1answer
488 views

WP_Query not retrieving by random order under parent

I currently have TWO subpages under parent page ID 43. Client testimonials.. Anyway. I have the random order thing in the query $args but the order never changes. What could I be missing? ...
0
votes
0answers
7 views

Get taxonomy posts and show to category without using custom taxonomy slug

I have nhl news website and I create custom taxonomy for each season (ex 2014-15) function wptp_register_taxonomy() { register_taxonomy( 'season', 'post', array( 'labels' ...
0
votes
0answers
5 views

How to move short description under featured image in woocommerce single product page

Please tell me how can I move short description under featured image on product page in woocommerce. here is an image It is short description not description which appear in tab section.
0
votes
5answers
605 views

How to remove text “Log In” from login page

I am using Theme My Login and have noticed that, even though I am customising my own login-form.php template and simply including the appropriate form on a blank page with theme_my_login();, the text ...
1
vote
1answer
407 views

Why does my functions.php cause white-screen and media-library issues?

Overview: I was authoring a child-theme, and realized that functions.php was causing problems with the media-library and caused a "white-screen" to appear after editing a post. I fixed the issue by ...
0
votes
0answers
19 views

Redirect sub-pages to parent without changing URL

I am rewriting a Wordpress site and plan to turn part of it into an angular app. The site has a bunch of sub-pages of the form /recommendations/xxxxx, and need to maintain these URLs for SEO ...
0
votes
1answer
50 views

Update Gallery Randomly in every hour with no duplicates?

I need to order by rand with no duplicates and update my galley in every hour on WordPress. Check the code bellow. This is what I want, ( PHP , MySQLi ): <?php include ...
0
votes
1answer
68 views

Move payment options at checkout in WooCommerce

I'm using WooCommerce and i'm new to both Wordpress and this plugin. I have downloaded a free theme which I will configure, however I can't figure out how I can change the checkout template. What I ...
0
votes
0answers
39 views

Only one Post (Single) get a white Screen

When i enable the complete Debug Information, is the site created, if not enabled i get the White screen. And only at one Page from one specific Article. To enable die Debug Information is use this: ...
0
votes
2answers
942 views

Get single image from custom fields made with WCK custom fields creator

I used WCK Custom Fields Creator to create a repeatable custom field for uploading pairs of images (one color, one black and white) to posts. So for example, one post may have three fields, with two ...
0
votes
2answers
112 views
+50

WP_Session not acting with AJAX

The concept is to put a Button in Post Content which the user will click. Two things - The ID of the post and Number of times the user clicks the Button should be displayed. Reason - With this we ...
0
votes
0answers
26 views

Isotope div's containing images are overlapping (Firefox)

i worked since 2 weeks on a problem with a customers portfolio. I call the portfolio-items and give them one of two random classes with different sizes. And in the end, isotope give the elements a ...
0
votes
1answer
30 views

How to make post button to a random post

As you can see on my website http://www.kieshetsnel.nl/emma-watson-natalie-portman/ I currently have an Arrow left and right on the screen. But when i click next post (volgende keuze in Dutch) I ...
0
votes
0answers
15 views

Errors on plugin activation

I have a problem with a wordpress plugin I made. When I tested it on localhost it worked just fine, but when I try to install it on my website I have the following errors: Warning: ...
0
votes
0answers
12 views

WSOD after theme change

I tried to change the theme of my website and when i did it , everything get lost and i lost my website, even not able to login into admin panel, dont know what to do, please help me please. I am ...
0
votes
0answers
12 views

Two plugins sharing the same custom post type registration

I have two plugins Plugin A and Plugin B registering the same post type exp, aws_employee. Each plugin offers different functionality but the post type type they share is exactly the same. If I ...
0
votes
1answer
892 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 ...

15 30 50 per page