1
vote
2answers
41 views

Create WP_Query to search for posts by their categories or their parent/child categories

Hello I am really sorry if this has been asked before but I couldn't find the exact solution I need. So here's the problem I want to create a search in my Wordpress page. Whenever a user submits the ...
3
votes
2answers
38 views

Add content in custom post type page after the title and before columns

I found here on WPSE that you can add content before post title in the post page, and in custom post type pages add_action( 'load-edit.php', function(){ $screen = get_current_screen(); ...
0
votes
1answer
36 views

How to check post type (to include custom css)

I need to check the post type. If I put this in my functions file: echo "the post type is" . get_post_type(); the message just becomes: "the post type is". Is the post type checked to early? Do ...
-1
votes
0answers
22 views

Wordpress login with unidentified red mark above error

On my client's site, after they login, they receive the error: (note: unmarked red line) I don't know how to troubleshoot this. Help appreciated.
1
vote
0answers
12 views

Create a Button alongside add to cart

i want to create a button alongwith add to cart that will perform a specific function. please tell me how to do this.Also can you tell me the css of this button so that the button looks exactly like ...
0
votes
0answers
20 views

Allowing all HTML tags in textarea

I'm developing a plugin that has a custom field which is a textarea that needs to accept all HTML tags. To sanitize the data, other than using wp_kses() and including an array of every HTML tag that ...
0
votes
3answers
36 views

Action hook on only publishing post not on editing or updating

Could you please let me know wordpress action hook that must triggered only once when a user create a new custom post. That means if user creates a new post that hook must be triggered but when user ...
-2
votes
0answers
15 views

Convert Advanced Custom Field (ACF) to Avada as regular posts with all content [on hold]

I am migrating an existing Wordpress website where all content is stored in custom post types with ACFs into a new site running the Avada theme using only regular posts and categories. These are the ...
0
votes
1answer
20 views

How to notify my plugin users about new version releases?

I developed some WordPress plugins that I sell from my own website. Say, I released a plugin XXX (version 1.0) and someone purchased this. Few days later, I released version 1.1 of that plugin. Now ...
-1
votes
0answers
29 views

Custom Theme Admin contact-form config page won't display

I'm stuck. I'm trying to add a contact form section in my theme admin. I have added: the functions <?php /* @package volcanotheme ======================== ADMIN PAGE ...
0
votes
1answer
19 views

Upload files programmatically to users

i'm using pods plugin to add new custom fields to user so i added 4 files custom fields and then trying to upload files to this fields from registration page and create new user but when i upload the ...
0
votes
1answer
24 views

Create a variable with string, array or multiple values

I'm running some functions that will allow a user to register their own custom templates to my custom theme from an external directory. They can see these page templates in the wp-admin and they ...
0
votes
0answers
20 views

How to protect a comment with a password?

Is there any way to Protect a comment with a password so that the comment can be seen only when the right password is entered. I know a post can be password protected , but thats not the way i want ...
0
votes
1answer
19 views

javascript not loading

Here is what I've done so far in functions.php function imk_scripts() { wp_enqueue_script( 'bootstrap_js', get_template_directory_uri() . '/js/bootstrap.min.js', ...
1
vote
0answers
27 views

Is it possible to delay execution of shortcode output callback?

I have a problem : shortcode output callback triggered too early. /* Defined in plugin constructor */ add_shortcode( 'foobar' , array($this,'pre_render_routine')); function ...
-3
votes
0answers
26 views

How to Make some changes in CSS [on hold]

I Want to make some changes in My Blog as shown in image.
0
votes
0answers
13 views

How to use wordpress (php) functions in angularjs partials files?

I am using angularjs to load a list of my wordpress posts, however I can not get any of my php functions to work with my partials file. I've tried using something such as search.php instead of ...
0
votes
0answers
12 views

Can Outside Navigation Be Done In Wordpress?

I really like this guys site, and I'm very curious if this type of outside navigation can be done in wordpress. Like how it has transition animations from page to page, it never really loads a new ...
0
votes
0answers
6 views

woo commerce order success page not redirect

On our Word press site, we have developed a woocomerece payment gateway plugin and it passes the order id and the amount correctly, furthermore if we cancel the payment on the gateway it redirects the ...
1
vote
0answers
13 views

Use just a shortcode from another page

I am building a bbpress forum and I have it set up right so that when you click a forum it displays a loading image and loads the link with ajax instead of redirecting the page However, this loads ...
0
votes
1answer
36 views

Check if has any sidebar active on current page

Is possible to check if has any sidebar active on current page? Like this: @edit This function also return true even if the current page does not have this sidebar active... <?php ...
1
vote
1answer
29 views

Different loop output every x posts in custom post type

I was following along in another StackExchange Question from a couple of years ago where there was a layout along the lines of: <div class=items active> <div class=row> ...
1
vote
0answers
16 views

AJAX Request not working for Wordpress Multiple Shipping Addresses Plugin

I have a pretty urgent question and I need some help figuring out this issue. So I bought the Wordpress Multiple Addresses plugin because my client needs the functionality for their e-commerce site. ...
2
votes
0answers
11 views

How can I reuse the Wordpress search form for a custom plugin / widget?

I need to develop a custom widget to display posts, based on their ID. The user must be able to handpick posts. Right now, they can enter the post ID, but it is not convenient for them. Is it ...
-1
votes
1answer
27 views

How to limit users from accessing other users [on hold]

I'm trying to limit certain users from seeing certain other users within the database. We have a company that allows banks to register within their site with a membership. That company can then add ...
0
votes
0answers
13 views

How do I hide specific user profile fields?

I am using a membership plugin which pulls default WordPress user profiles to a directory. I want to hide these fields from my registered site users. I have searched for plugins and found nothing that ...
-1
votes
0answers
20 views

Is there any CLI tool for plugin development? [on hold]

I have plans to build tool to speed up WordPress development by creating boilerplate code for plugin/themes. Something like set of Generate commands in Symfony2 Console component. Tool have to ...
0
votes
1answer
40 views

Sort results without WP_QUERY?

I am new to coding a WP_QUERY and I tried a few things with it but it doesn't seem to work. Right now (you can see the page here: http://boomerang.mannydesigns.co/artistes/parcourir/musique/ ) I need ...
0
votes
0answers
10 views

woocommerce display total of completed orders on a product

I want to display the total of only completed orders of a product, now total_sales are displayed, but it contains the total of all orders of a product (processing or completed orders).
0
votes
0answers
9 views

Wordpress cannot upload files to server after recompiling PHP

Problem: PHP interferes with Wordpress ability to use write permissions on folders after recompiling PHP. This problem is so vast, yet no answer exists. Here is what does not work: Changing ...
1
vote
1answer
46 views

How to get javascript slider to work!

I've only just started to develop my own themes and i'm stuck adding javascript to my slider. I've added the slider into my index.php file as below: <div class="carousel"> <div ...
1
vote
2answers
78 views

Change slug on post creation

I currently use Post name for the permalink structure. I want to add text from a field at the end of the permalink. Is there any hook for the permalink creation when a Post is published? In my case, ...
0
votes
1answer
26 views

Wordpress Child problem in admin

I created a child theme of Twenty Sixteen. It shows ok on the visitors' side, i.e. http://favrodsculpture.com. But in the admin, I can't upload images, can't log out etc... If I write a post, it does ...
0
votes
2answers
41 views

Where is Number of Posts Set?

I'm hoping someone can help me with this seemingly simple problem. This is a custom theme that I've been given, and simply changing the number of displayed posts in the Settings menu is ...
1
vote
1answer
12 views

Is there a way to recover the table wp_term_relationships?

I'm trying to help a Non-Profit Organization with their site (which is built with Wordpress) that suddenly became "buggy"/odd: menus were missing, categories were empty, etc. I'm no expert around ...
1
vote
1answer
11 views

Edit page's “Restore the backup” link does nothing

Every now and then WP logs me out and a pop-up requires me to log back in. After this happens and I am back in, I try to save some changes to a page I'm working on, but there is an error like "Are you ...
-1
votes
1answer
18 views

Insert shortcode in widget area

I enabled the Insert Pages plugin wich allows to create a shortcode for a given page e.g.: [insert page='7' display='all']. See my capture of the setting of the plugin: ...
1
vote
0answers
31 views

Passing jQuery value using Ajax to a page template

I have the following jQuery code:- jQuery('.fancymember').on('click', function() { var member = jQuery(this).parent('div').parent('div').find('.test').val(); var dataString = 'member='+ ...
0
votes
0answers
27 views

How to develop custom URL redirection

I'm writing a custom theme and have a custom post type which represents an external entity (e.g. a website). Hence, I have a field 'external_url' in my post type. Part of the custom post type post's ...
0
votes
1answer
11 views

Java code/ JSP page in wordpress

Is it possible to write java code or add a Jsp page in word press, I searched on Internet but did not find any solution. I found How to run applet in wordpress But that too was not helpful.
0
votes
1answer
13 views

customiser settings for checkbox (displaying content)

I'm currently making a option in customiser to hide content using a checkbox, tick to show and unticked to hide.. was using it to apply the display:block and display:none on a id to get the effect but ...
0
votes
1answer
34 views

Adding Additional Variables on Menus Page

I'm learning PHP by building a plugin to show or hide menu items based on a user's location. I am a bit stuck at the moment. In the function below, the text input is being saved to the database, but ...
0
votes
1answer
36 views

Different Crop / Scale Settings

I have an Affiliate Store with 8000+ Products from over 20 Partnershops. I refresh the Products via CSV ( WPALLIMPORT ) I use Woocommerce Each Shop has a different Image-size. some of them have to ...
-3
votes
0answers
24 views

Multiple/different front-pages in one Wordpress site

Let me explain first the situation. I made a Wordpress site an a customized front page for one store, that gets a json statics from that store. Now we want to deploy for all our stores (+100) and ...
1
vote
0answers
12 views

displaying and sorting comments by a custom field (using PODS plugin)

In my blog, i answer comments inline by editing them to add "admin says: blah blah". i do this so i won't bump up the comment count with all my admin comments. I am using the PODS plugin to add a ...
0
votes
1answer
32 views

how to insert data in li tag of navigation

I'm trying to insert an image for each of my navigation items without any plugins. I'm not much of a coder, but I googled for something called walker, but not sure if this should be done for my case. ...
-4
votes
2answers
27 views

How to var dump urls for all posts

I need to see all urls of all publish blog posts in the site. How can I get this? I want this for redirecting in .htaccess of old site to new site. This needed in anything page of site.The result is ...
1
vote
1answer
24 views

Restrict role to view own media

There are plenty of solutions for limiting access to view your own uploaded media but I was wondering if it was possible to limit media to a user role ( e.g. author's can see all other author's media ...
3
votes
1answer
28 views

Apply styling only to first page sticky posts

I'm using the following bit of code to highlight sticky posts: <?php if (is_sticky()) : ?> <div class="col-md-12 box-01"> <div class="content"> <?php endif; ?> The ...
1
vote
0answers
18 views

Unique User for all visitor, but possibility to comment with unique name

Maybe a little bit more information: The website is a local blog for a company. They generate only one user and password each 3 month. This username is used for all people who work in this company. ...

15 30 50 per page