0
votes
0answers
2 views

WordPress plugin checkbox check help

I am currently trying to learn how to make a fairly simple plugin. However, I am trying to make it a little more complicated and streamline the code as I go. I am currently trying to make an array of ...
0
votes
0answers
3 views

Authoritative answer on which boots first - Plugins or Themes?

I can't seem to find anywhere in the WordPress documentation an authoritative answer on the question on whether a WordPress plugin boots first or whether a WordPress theme boots first. I need to know ...
-1
votes
0answers
4 views

Woocommerce - Custom fields and dynamic price for single products

I'm developing an online printing shop. What I want to do is very simple. Visitor will pick a product, let's say "Business cards", then inside the product he will interact with the next fields: ...
0
votes
1answer
5 views

Register custom taxonomy: show_admin_column => false not working

I have a custom taxonomy with show_admin_column set to false. However it's still showing in the custom post editor on the right hand side. Am I doing something wrong? function kk_register_taxonomies()...
0
votes
0answers
13 views

Server errors after going live

I prepared the relaunch of our website from another CMS to WordPress. So, during the preparation, the installation was in a password-protected folder. Everything worked well. After going live (rename ...
0
votes
0answers
9 views

Category Name and Slug field need to be the same otherwise it breaks category pages

On our WP install we have Topics pages which pull together any content which has been tagged with that topic. Standard. When we visit the topic admin page and edit the Name field (so it's different ...
0
votes
1answer
14 views

searching for members in wordpress

I have custom fields setup in S2MemberPro, lets say they are these: memberid phone referredby I want to search the custom fields if searching those fields, and if searching the normal fields like ...
0
votes
1answer
16 views

Override theme programmatically

Is it possible to override the theme, programmatically, for a WordPress site? I have a site I’ve been developing and want to test it on my client’s site before flipping the switch. What I’d like to do ...
0
votes
0answers
10 views

Same Title on two different post type with single custom taxonomy

I have a custom taxonomy "Store" assigned to two post types : default "Post" type and second "Coupons" for all "Post" of ebay : my links is - http://domain.com/store/ebay/ and all "Coupons" of ebay : ...
0
votes
2answers
13 views

How to register HTML data-accordion as an allowed attribute in KSES

Does anyone know how to register data-accordion as an HTML attribute in KSES? I've tried to use the codex but is not specific enough to tell how this is done. Thank you
0
votes
1answer
6 views

QueryObject un-orders post

Hi I'm using this code below to display post from a specific category and also to style the first post different from the next 5 post. <?php $queryObject = new Wp_Query( array( 'showposts' => ...
0
votes
0answers
12 views

custom field shows also images of other posts in lightbox

function wp_list_mine_posts( $wp_query_obj ) { // Front end, do nothing if( !is_admin() ) return; global $current_user, $pagenow; wp_get_current_user(); // http://php.net/...
1
vote
1answer
13 views

Include sticky posts on the static page front page

I have a static front page that lists out news. Right now, it ignores the stickiness of a post, and justs lists it. I want it to work the same way as my blog posts page does. I want it to list out all ...
0
votes
0answers
9 views

Wordpress is adding parameter to links in pagination loaded by ajax

To load posts without refreshing page I use this jQuery function: $.ajaxSetup({cache:false}); $("body").on("click", ".posts-navigation a", function(e){ pageurl = $(this).attr('href'); if(...
-2
votes
0answers
7 views

Custom pages layout solution

I have been in wordpress dev business for more than a year, made few themes for some friends but one question always pops in my head when I see a PSD template: How to deal with multiple dynamic ...
-1
votes
1answer
8 views

While doing a bulk upload the Media Images are showing blank?

I am uploading all my images through media library. After uploading images I am giving image name in my bulk upload excel file and adding that image name into post and postmeta table. The image is ...
0
votes
1answer
18 views

Add a filter to get_comments_link()

I am trying to change the permalink #comment-xy to #customname-xy. When i change the corefile comment-template.php on line 754 to $link = $link . '#customname-' . $comment->comment_ID; I achieve ...
0
votes
0answers
11 views

Adding fields to attachment - only shows when inserting new attachments

I'd like to add two custom text fields for image attachments to posts (images inserted into the content of a post). Second I'd also like to remote some of the default fields like caption and ...
0
votes
1answer
18 views

PHP Helper Class to create shortcodes

I created a helper class to extend other classes for shortcodes. When I try to use $this in the add_shortcode() function I'm getting this error: Using $this when not in object context How can I ...
1
vote
3answers
47 views

Get attachment ID of author_meta image - Attachment Metadata

I've created a custom field in user profile where upload a profile image. It's very simple. To create fields I've used: add_action( 'show_user_profile', 'cover_image_function' ); add_action( '...
1
vote
1answer
23 views

How can I make a development copy of my site in a subdirectory to test out a theme?

I have purchased a WordPress theme and I want to test the theme on the same domain without removing the current theme. For example: I have a WordPress website www.example.com (running with one ...
1
vote
2answers
18 views

Selectively restoring original posts from a compromised site to a freshly installed WordPress database

My site has recently been compromised. If I restore the full database, google says there is hacked content on my site. The hacker has created many new garbage posts in my site - which already got ...
-4
votes
0answers
12 views

ultimate member form not showing [on hold]

I am using ultimate member, and I used the shortcode on the register page but form is not displaying but when I do view page source I can see the form code there.. why this is happening ? here are ...
0
votes
0answers
14 views

jquery - output display statement

/** * VARIABLE PRODUCT PRICING TABLE */ function rp_wcdpd_switch_variable_pricing_tables(element_id) { jQuery('.rp_wcdpd_pricing_table_variation').hide(); jQuery(element_id).show(); } if (...
0
votes
1answer
15 views

store posts_id of category into a varable?

I have ten posts in my query that belong in three categories: cat-a,cat-b,cat-c. I'm looking for a way to store $posts_ids from each category into a variable. Say for example, if three posts are in ...
1
vote
2answers
23 views

Overriding WP login credentials

Whenever we login to wpadmin there are two available credentials username or email password I want phone number in place of username so I can login to wpadmin with Phone Number or Email password ...
0
votes
1answer
19 views

pagination on data fetched using SQL query

I am new with php and word press. I have a question that I am using a sql query in my posts to get data from my data base. Now the problem is that I have huge data on my post and I do not have idea ...
0
votes
2answers
16 views

Child Theme Not Overriding Parent Theme

I know this question has been asked many times. I even spent the entire day yesterday getting things to work but to no avail. I am pretty sure I am missing out on something small//silly but I am ...
-2
votes
1answer
10 views

Adding pagination on template page wordpress

in the template page loop get posts from tag which name is raspee, post per page are 5. pagination show in the page but not working.. What is problem in my code?? Template-page <?php /* ...
0
votes
0answers
13 views

Troubles with contact form 7 restricting Acces

I want to remove Contact option from authors panel, I have tried remove_menu_page('admin.php?page=wpcf7'); and define( ‘WPCF7_ADMIN_READ_CAPABILITY’, ‘manage_options’ ); define( ‘...
0
votes
0answers
13 views

Unknown Error When Saving Post

I have a strange situation with WordPress Multisite and Apache. Originally, I've set up WordPress & Apache with HTTPS for security purpose. Over time, I realize that HTTPS takes too much ...
0
votes
1answer
14 views

Search: display all found matches inside post

I'm working on a custom search where I'm filtering results using custom taxonomies and categories. The search works but on the results I want to display every match inside the post, for example if I ...
1
vote
1answer
16 views

Create single.php for specific tag by tag id or name

i have multiple tags and want to create multiple single.php for everyone tag. How create single.php for tags?? This code working well for category, how to edit it for tags?? function ...
0
votes
0answers
14 views

How to register data-accordion as an allowed attribute [duplicate]

Continuing my now protected question from earlier at How to retain HTML5 Attributes on Markup: How do you "register data-accordion as an allowed attribute" @Rup ? I looked at the Codex and it is not ...
-1
votes
0answers
8 views

multiple choice questions with payment [on hold]

Looking for a plugin that would provide a multiple choice question with payment submission. This would work as a competition. ie.. What colour is the sky 1. Blue 2. Purple 3. Green Select an answer, ...
1
vote
2answers
24 views

post meta getting deleted on save

I'm having an issue saving post meta on all post types, both default and custom. I'm hooking in to save_post to run my function, and what's happening is that the post meta gets added, but then ...
0
votes
0answers
9 views

Two separate category blog excerpts on static front page

I currently have my main blog set up under a category and another category setup to give the illusion of two sep blogs on WP. The setup I'm trying to achieve is this. Front-page (static) -blog-...
0
votes
0answers
9 views

Empty temp image folder daily using wp_cron

I have a folder on my server that holds temporary images. I would like to empty this folder daily to free up space. I am using the following cron job: add_action('images_event', 'images_weekly'); ...
0
votes
0answers
24 views

Is it possible to change wordpress shortcode via javascript

Is it possible to change wordpress shortcode via javascript. Conditional shortcode like shortcode value=true if checkbox is checked else shortcode value=false if checkbox is unchecked
0
votes
0answers
6 views

How to prevent script from updating each image in Custom Image Widget

I found this create question here where you can create a custom image upload widget. Everything works great except as the disclaimer in the answer mentions every time an image is updated (if multiple ...
0
votes
0answers
14 views

Select Unique Posts for a List of Tags

I have a query returning a list of tags based on my search criteria. I am looking for a way to return a list of posts for these tags however I would like to exclude redundant posts from the results. ...
0
votes
0answers
11 views

moving post content to acf fields via sql or xml

I'm in the process of moving content over from an old wordpress database to a new WordPress site using acf fields. Currently, I have written sql statements and pulled all the data I will need into ...
0
votes
1answer
15 views

How to make Meta Query case sensitive?

I have a meta query similar to: $posts = new WP_Query( 'post_type=article&meta_key=kln_aid&meta_value=' . $aid ); where I need aid to be case-sensitive. Is that possible via Meta Query?
1
vote
0answers
13 views

Sticky posts per category

I need: to have the ability to set one post as sticky in one category and not the others. Example: So let's say i have this three categories: "one" "two" and "three". and i have a post named "sticky ...
0
votes
0answers
15 views

Conditional Gravity Forms filter in WordPress Multisite

I'm using this technique: http://stackoverflow.com/questions/27323460/how-to-label-payments-in-gravity-forms-paypal-pro To add comments to the paypal comments field from a gravity form. However, it's ...
0
votes
1answer
17 views

Is wp_reset_postdata() redundant after the main loop?

I'm confused about an example from the docs: <?php // The main query. if ( have_posts() ) : while ( have_posts() ) : the_post(); the_title(); ...
0
votes
0answers
15 views

Why WP Query Multiple Shortcode not working on same page?

I created a Shortcode slider which gets ids of different pages and show display slider. Shordcode works fine but issue is that whenever i am copy past shortcode multiple times on same page/ template ...
0
votes
1answer
11 views

Can't call WPDB inside RSS template

I'm trying to create a custom RSS feed that will list and display information from a custom table I've created, that I use elsewhere in my WP site. The table and everythign work fine. However, even ...
0
votes
1answer
11 views

export and import taxonomy terms from one taxonomy to another

I have a custom taxonomy named "places" and another taxonomy named "featured places". On the "places" taxonomy i have 150 terms (names of places) and i want those same 150 names (terms) on the "...
0
votes
1answer
19 views

Singleton Custom Field (Meta Box)

How do I create a custom meta box for posts which have a boolean data type and can be true only for one post. I want it to be falsified for all other posts when it's set on one post. Is there a hook ...

15 30 50 per page