0
votes
0answers
4 views

jQuery this function [migrated]

$('.delivery_option').click(function() { var current = $('.active-radio-label'); if (current.length) current.removeClass('active-radio-label'); $(this).addClass('active-radio-label'...
1
vote
0answers
5 views

Combining categories?

I'm attempting to combine categories to display a list of all posts from multiple categories (if anyone answers this, you might want to include combining tags as well, as probably that will make this ...
0
votes
0answers
6 views

Custom post not showing

I created custom post type in my functions.php with the following code: function awesome_custom_post_type(){ $labels = array( 'name' => 'Portfolio', 'singular_name' => '...
1
vote
1answer
7 views

How to remove the WordPress version from some .css/.js files

I know that I can use the following function to remove the version from all .css and .js files: add_filter( 'style_loader_src', 'sdt_remove_ver_css_js', 9999 ); add_filter( 'script_loader_src', '...
0
votes
1answer
3 views

AJAX call in backend results in empty update_option

In the admin backend pages I get some settings saved in a multidimensional array, update them and then save them again in an AJAX callback function. The problem is that the saved settings are empty, ...
0
votes
0answers
4 views

Wordpress - post 2 post search through relation

So I have a WordPress site with events. I have an event post type and an eventdate post type. events have many eventdates connected to them. What I want to do is a WP_Query on the events but I want it ...
0
votes
0answers
5 views

How to update table in woocommerce product_attributes page

This is here edit.php?post_type=product&page=product_attributes and this two tables comes from class-wc-admin-attributes.php . How to update this tables in woocommerce product_attributes page? Can'...
0
votes
1answer
11 views

Add a role and give admin priviledges

I am creating a Super Admin role in wordpress Roles. $capabilities=array(); add_role('Administrator', 'Administrator', $capabilities ); add_role('Super Admin', 'Super Admin', $capabilities) ); So ...
0
votes
1answer
15 views

Remove H1 / title / Underscore - without CSS

I have tried searching, and tried a few options, but I'm not able to remove the H1 / title / Underscore for specific pages. I don't want use CSS. I would like to remove it via functions.php or in ...
0
votes
1answer
20 views

Highlight parent menu item when child post

I'm using this snippet for marking the parent navigation active when on custom post type single page: add_action('nav_menu_css_class', 'add_current_nav_class', 10, 2 ); function ...
0
votes
0answers
6 views

Visual Composer Post Grid Filter position and markup

I am trying to alter the position that the filter appears for posts grids and also alter the markup of the filter but am so far unable to do so. Simple Set Up This is how I have created my post grid ...
0
votes
1answer
18 views

Attachment Page Permalink/URL Rewrite Issue. How to change the actual rewriting?

I have a problem understanding the behavior of the Attachment Page Permalinks Into Setting-->Permalinks I have set http://www.example.com/sample-post/ as the preferred setting. When I upload an ...
0
votes
0answers
19 views

remove post that has no content

Code below display posts now I only want to display the items if it has a <?php echo c2c_get_custom('Gallery'); ?> on it. <ul id="gallery-container"> <?php ...
-1
votes
0answers
8 views

Contact form disappeared [on hold]

strong text My website got hacked and I restored it. I have fixed the broken images as well but contact form disappeared, but field name is present. I have attached images. In this image I need ...
-1
votes
0answers
10 views

How to create unit tests for Wordpress and Woocommerce

I am interesting writing or utilizing existing unit tests for my Wordpress and Woocommerce site. It is getting bigger and new custom features are being written and improved all the time. I want to ...
-2
votes
0answers
7 views

Different page background if different pagination page gravity Forms [on hold]

I am using gravity forms plugin and using the pagination field. Depending on what stage of the pagination I am on, I need a different background image on the page. The issue is the actual page id ...
0
votes
0answers
11 views

Website error when I backed up my website from my old web host and restored the site onto my new web host

I just recently backed up my website from my old web host and transferred the domain to my new web host. I then restored the database files and SQL files as well as corrected the configuration.php ...
-2
votes
0answers
14 views

Need code: Space between page info and buttons and space below the homepage image [on hold]

This is my website: http://musetude.com/ There is some space between the navigation pane and the page info. I would like the image to move directly beneath the buttons. Could you please help me with ...
-3
votes
1answer
26 views

Is strpos not working inside functions.php?

I'm trying to load a custom template whenever a certain string comes up in the URL. I've tried putting this in my functions.php, but it's not working: add_filter( 'template_include', 'paged_home', 99 ...
1
vote
1answer
13 views

how to get the comment ID in the front end when the REPLY button is clicked?

I think I might be able to parse the URL for the replytocom parameter and get the comment ID from that. However, it would mean that my plugin would not be fully compatible with other plugins that can ...
0
votes
2answers
27 views

spliting posts into two columns

This is a continuing question from Merging a complex query with post_rewind and splitting posts into two columns Hi, I need help with my loop. What is does is split posts into two columns. <?php ...
-1
votes
0answers
16 views

Redirect if cookie isn't set does not work

I use cookies on my websites and these cookies should be deleted if an user isn't on a specific page. This works perfectly but the problem is that if a user is on the page and goes to another page ...
0
votes
1answer
19 views

Can some vulnerabilities in plugins be exploited even when the plugin is inactive?

I just received a notification from the developers of the Wordfence security plugin of several vulnerabilities that exist in other popular Wordpress plugins. One example in this case is a mailchimp ...
0
votes
1answer
33 views

Programmatically Create Category and sub Category

i create category have name Brand with this code. i have total 3 categories and each have 3 subcategories. how to output 3 category and 3 subcategories for each category? function.php code ...
0
votes
2answers
17 views

Does get_template_part pull data once in a loop?

When i use the "get_template_part();" inside a loop, does it search for that template file every cycle of the loop (each post) or does it search for the file once and then reuse it every cycle of the ...
-1
votes
0answers
11 views

Make Whole Site 404 But Not Login Page to Allow Me Login to Dashboard And Edit Posts [duplicate]

My website has no other users only one admin(Me). I searched many maintenance plugins but no one returns 404, Is there a way I can hide site from search-engines+users with 404 headers. But only login ...
0
votes
2answers
41 views

Need to turn this php into WP shortcode

I need to turn this code: <?php if ( function_exists( 'echo_ald_crp' ) ) echo_ald_crp(); ?> into a shortcode. Can someone help me do this? I have researched but am just lost to be honest. ...
-2
votes
1answer
22 views

Default post type doesn't display in url

My site currently has an opinions page which displays opinions posts (/opinions/). The post pages are only showing as /post-title/ when I need /opinions/post-title/. Code below, changes the default ...
-2
votes
0answers
10 views

Trying to make Divi's Theme dropdown menu OnClick instead of hover [on hold]

I'm using the DIVI theme and making some relatively simple modifications to it to better suit my needs. One thing I'm having some difficulty with though surprisingly is swapping out its vertical menu'...
-2
votes
0answers
13 views

CSS Menu Button - Driving me crazy [on hold]

Going crazy trying to get a fix for my menu contact button...any help would be amazing...see here: http://bit.ly/2a4OfSc The contact button is all white see through but for some reason I can't style ...
-2
votes
0answers
9 views

How can i call class file from one page to another page [on hold]

I have maintained offer coupons promotions site, in my product page defaultly displayed store logo, i need to display defaultly displayed store logo into my thumbnail of the product image when there ...
0
votes
0answers
10 views

Add Template Selector Drop-Down to LearnDash Custom Post Types Array

I have a set of functions that I found online which add a meta box for templates to my WP Post editor and it works perfectly (http://pastebin.com/0WdPAWM1). I tried to modify it to be applied to an ...
-2
votes
0answers
10 views

Creating Wordpress template from Photoshop design file [on hold]

I got a task to make a custom template on Wordpress. I got a photoshop design file of how website should look like. I'm new to Wordpress development so I'm wondering what are the steps to create a new ...
-2
votes
0answers
6 views

Woocommerce - Customer Order CSV Export - Trying to Export Add a “Tag” Field [on hold]

Our company has purchased the plugin WooCommerce - Customer Order CSV Export from WooThemes. We wish to have the ability to add a column in which the tags displayed on the Woocommerce product are ...
-2
votes
0answers
13 views

Can I have a different background picture for each page?

This is my 2nd day with WordPress.I figured out how to do a background picture for the entire site but I want a different picture on each page. How can I get a different background picture for each ...
-3
votes
0answers
13 views

Plugin To Embed Multiple External Photo Albums [on hold]

A person whose website I am working on has requested a page for photos to display pictures from day trips and various activities they do. I've concluded that they would run out of storage space quite ...
0
votes
1answer
16 views

DNS - Change Wordpress Site Name?

I'm about to make a site go live, but I realized that Wordpress assigned the website name as the IP address under settings. When I try to change it, the website errors out. When I've tried to change ...
0
votes
1answer
34 views

Two custom loops, pagination is MESSED UP!

here's my problem: I'm on single.php and am trying to display at the bottom of the post a group of four related posts first, and then a list of all posts using infinite loading. So I created two ...
0
votes
0answers
6 views

add a menu item in buddypress [on hold]

i want add a new link (link of a specific post-page)on the buddypress menu, i have already found a code like this : add_action( 'bp_member_options_nav', 'buddydev_add_profile_extra_custom_links' ); ...
0
votes
0answers
15 views

Can I have multiple ld+json scripts in the same page?

The below script appears if I check the “Display the site links search box” in All in One SEO General Settings: <script type="application/ld+json"> { "@context": "http://...
-5
votes
0answers
18 views

How to make static custom wordpress pages responsive and dynamic

I am new in Wordpress development. i have deceloped a wordpress theme which has static pages now i have two problems:- Whenever I resize the browser windows the layout of pages become horrible. So ...
0
votes
1answer
27 views

How can I correct an child post

how can i child post ? like http://mysite/category/postename/gallery http://mysite/category/postename/morevideos http://mysite/category/postename/attachment http://mysite/category/postename/... Is ...
-2
votes
1answer
20 views

How can I query posts from any category?

How can I display posts query from any category? For example, I want to show post using two column layout. The first layout will show one post with big thumbnail and title. The second layout will ...
0
votes
1answer
22 views

Adding a sidebar to wp-login.php

so I'm running a membership site and want the login page to promote the value of signing up. I can't figure out how to get a sidebar to display on this page. Everything I've tried breaks wp-login.php. ...
0
votes
0answers
12 views

Why do i get the media files that I had detached from the posts(but still present in the media library)?

wp_get_attachment_url() is the method used to fetch the attachments. Currently I am passing the attachment IDs fetched by $attachments = get_children( array('post_parent' => get_the_ID(), '...
0
votes
0answers
15 views

Contact Form 7 + Contact Form 7 Datepicker + Custom validation - No custom error message [on hold]

I have created a form with CF7 and I inserted two date fields (with the CF7 datepicker plugin). The two fields are [date* date-641 date-format:mm/dd/yy], [date* date-820 date-format:mm/dd/yy]. The ...
0
votes
1answer
20 views

How do you add custom color swatches to all WYSIWYG editors?

I would like to be able add the same custom colours to the swatches at bottom of colour picker panels that appear in the WYSIWYG editors across the site, to make it easier for clients to keep ...
0
votes
0answers
12 views

How can I add an “Attach image to this post/page” link on the Add Media lightbox?

How can I add an "Attach image to this post/page" link on the Add Media lightbox? My theme uses attached images to generate sliders. I want to be able to attach images from Media Library to the ...
0
votes
0answers
5 views

Multiple fields search for posts (like a filter)

I want to build a themes for both a property listing website and a car listing website, each will have custom posts types and taxonomies, my question is how would I handle the search functionality ...
0
votes
2answers
16 views

Remove query var on admin pages when 'Save changes' pressed

In the admin backend we use a query arg that is left in the URL and keeps getting used whether it is supposed to or not. Our plugin has an array with values that can be toggled via the custom backend ...

15 30 50 per page