0
votes
0answers
2 views

Update get_page_templates function to pass template filename into select option value

I am using the following function to pull page templates into a select menu in WordPress' Theme Customizer: function get_page_templates_select() { $teh_cats = get_page_templates(); foreach ( ...
0
votes
0answers
8 views

WordPress Load get_page_templates into select menu

I am using WordPress' Theme Customizer where I would like to add an option for the user to select the page template used. Here is the code to get the page templates (this is the section that needs ...
1
vote
0answers
5 views

Using WordPress' Theme Customizer to select page templates that update layout in the preview

I wasn't sure where to post this question.. I recently discovered WordPress' "Theme Customizer" and am using it to make the pages easier to update for clients. Rather than the standard way of editing ...
0
votes
0answers
8 views

Storing Unique Data on the Database

I have created a custom table on my database using the code below: function dbcreator_activate() { global $wpdb; $table_name = $wpdb->prefix . "ftbstatistics"; if( ...
0
votes
1answer
8 views

With Wordpress + Visual Composer, how to restrict a user to change some content in a page?

Sorry if it's not the right place to post that but I did not find better. I know in Wordpress, it's possible to restrict users to change pages or remove items from the menu. But is it possible to ...
0
votes
1answer
9 views

Role can edit just one page

I've built a site for a client, only ten pages, nothing especially big, and created a role for the group members called Blogger, as the staff need to all be able to both blog and access a couple of ...
0
votes
0answers
7 views

Allow one use group to manage another

I have a website where members and their managers have accounts. The members can create and upload their content, but the managers have their own login and can see a list of the members they manage. ...
-1
votes
0answers
7 views

Woocommerce: Ship only to specific states

I'm trying to limit my delivery to specific states in the Woocommerce checkout, but I want to allow billing to all states. I've searched many times to solve this problem, but failed. I found this ...
1
vote
1answer
11 views

Hiding posts from non logged in users

I wish to hide certain posts for anyone that is not logged in. I tried the Restrict Content (RC) plugin but that did only hide the content of posts, i wish to omit the post completely. Using RC as a ...
1
vote
0answers
5 views

Add custom capabilities to existing custom post type

The only way I can find to associate post types with custom capabilities is during the register_post_type function. I'm looking to add a capability for a certain role (my_role) for a post type that ...
-1
votes
0answers
12 views

how to solve wordpress theme installation problem?

I am developing a theme but when I install this theme in my local server it say this message. what's the problem actually?
0
votes
0answers
16 views

Blank screen on wp-admin

I know this question has been asked tons of times but it was all outdated; I tried every single thing and it still doesn't work. Here is what I tried so far: Renaming the folder Renaming plugins ...
1
vote
1answer
28 views

Retrieve POST data from AJAX call

I have the following JS script : jQuery('#form-recherche').submit(ajaxSubmit); function ajaxSubmit(){ var newFormRecherche = jQuery(this).serialize(); jQuery.ajax({ ...
-1
votes
0answers
12 views

Help me identify best theme / foundation to start developing a portfolio website [on hold]

I'm trying to create a portfolio website where I can showcase some of my work as well as write about some of my thoughts. If I could make one existing website my portfolio it would be the solveforx ...
-1
votes
0answers
22 views

Is my wordpress hacked? [on hold]

I have this weird code in my wp-load.php getting added every time I delete it. I want to know out of curiosity what the code meant for. Also I want to know how I can stop it from coming back. ...
-1
votes
0answers
5 views

WooCommerce Bookings : Display Element if a Saturday Is Selected From Date Picker [on hold]

I'm using the WooCommerce Bookings plugin on my WordPress site. I'd like to be able to show a paragraph of text underneath the datepicker calendar on the product page if the user selects any Saturday ...
0
votes
2answers
13 views

Detecting current page from class method

I've tried to look for a specific answer/tutorial on this subject but I'm coming up short and wanted to see what the SE community could suggest. At this point, any guidance whatsoever would be most ...
0
votes
0answers
5 views

Woo-commerce: Hiding archived products from the front end when logged as admin

With Woo-commerce archived products appear on the front end of the site when a user is logged in to the WP-Admin area. Is anyone aware of way to prevent archived products from being displayed like ...
1
vote
0answers
15 views

Custom Post Type relationship with hierarchical parent and child permalinks

Trying to get my permalink and url structures to behave nicely. I have a Custom Post Type called Diseases. This post type is hierarchical with parent and child relationships. I have another CPT ...
0
votes
3answers
18 views

AJAX call returns 0

In spite of many similar posts, all the proposed solutions didn't work for me, so here we are. I have the following script : jQuery('#term').keyup(ajaxChange); function ajaxChange(){ ...
1
vote
1answer
23 views

How to target first img in every post with CSS

I am trying to target first image in every post. The example post where I am trying to perform this is here. So I tried to use first-of-type like this .single-post .entry-content ...
0
votes
0answers
13 views

Orderby taxonomy term id using get_posts not working

I'm looping through a series of custom post types and then grouping those by a taxonomy term. That is working great, however I have not been able to order these groupings by term_id. I used a ...
0
votes
1answer
16 views

Redirect all pages except one to homepage via .htaccess

I just trasformed an old website to a one-page Wordpress. The old website had several URLS, now there's ony 1: the homepage. Plus another page with privacy policy. Hence I would like to redirect all ...
0
votes
2answers
17 views

Show featured image as background image from postQuery

The code below gets the image but I want it to be a background image. I believe I need to save the image as a variable first and then echo it out somehow. My PHP is not great so please give an example ...
0
votes
1answer
12 views

Importing featured image to posts, duplicates the image

I'm using wp cli to import the same featured image for around 2,000 posts. I did a couple tests to see if the image would be duplicated or if WordPress would notice that the image already exists in ...
0
votes
2answers
19 views

Add custom shortcodes to the Welcome Mail

I need to add a custom shortcode to the welcome email of my website. I'm not expert; what I need is in plugabble.php file? I tried a lot of plugins for edit email template but nothing seems work. ...
0
votes
2answers
17 views

Which function required?

Which WordPress function allows you to include the footer.php file into index.php file?
1
vote
1answer
14 views

Customize Embedded Tweets (or, How To Hide Photos in Embedded Tweets)

I'm relying on the WP functionality to embed a tweet. When I add a tweet URL, like so: https://twitter.com/SamFlowers/status/724417082247528448 to the editor, it expands and shows the following: ...
0
votes
1answer
12 views

Can I check who updated the static front page on WordPress and the time it was done

I need to check who updated the static front page of a WordPress site and the time it was done. Is it possible? And if so how? I'm an administrator of the site and there are other administrators with ...
-1
votes
0answers
11 views

wp_insert_term() Invalid taxonomy

I register a custom taxonomy called image-category using Toolset Types plugin and created a frontend form for registered users created terms: if( 'POST' == $_SERVER['REQUEST_METHOD'] && ...
0
votes
0answers
7 views

Send media uploads to different directories

I am making a website for my local primary school, and I have each class page as a separate page template. Rather than have all their uploads go into the general /uploads/ folder I'd like to direct ...
0
votes
1answer
20 views

Post order in layout (css problem?)

I made the layout for blog and styled each post in block. I have problem with display order of post. I use standard loop: <?php query_posts('cat=317&showposts=6'); ?> <?php if ( ...
0
votes
0answers
14 views

Attach to wp-login.php and xmlrpc.php

I am receiving many requests to my wp-login.php and xmlrpc file, now I just set up an htaccess to prevent requests to xmlrpc, but how do you suggest me to block wp-login? thanks
0
votes
0answers
20 views

Ajax and form action

I'm using Zajax plugin for page-loading. It's impeding the action of a PayPal add-to-cart form and preventing the desired action and delivering a 'failed to load' error. Is there any code I can add ...
-5
votes
0answers
11 views

customize_admin_bar script

I need help. The following script is to be adjusted so that work with Usergroup subscriber not with ID1. Many Thanks! function customize_admin_bar() { global $wp_admin_bar, $current_user; if ...
0
votes
1answer
19 views

How can I use a text and a function php

I want to display a text and a function in same sentence: <?php echo 'Right sidebar'; ?> <?php echo the_content(); ?> Something like this: <?php echo 'Right sidebar' the_content(); ...
-1
votes
1answer
23 views

WooCommerce Empty Cart if User Go to Page or Site Other than Current Checkout Page

I am having a breakdown as I am trying to create a method where when user go to page/site other than the current Checkout page, user's cart will automatically emptied. I wonder if this is possible ...
0
votes
0answers
7 views

Temporary Test WordPress Multisite Instances

What I need is a solution to setup a way for clients to test a plugin, in the backend, on a demo wordpress installation. Something like a temporary testing instance (wordpress multisite subdomain). ...
-1
votes
0answers
12 views

Edit woocommeerce checkout form on the fly

I'm using woocommerce in wordpress and i'm planning to change the checkout form depending on the action of the user. I have the standard form created in the admin checkout fields settings. That should ...
-1
votes
0answers
14 views

WP function get_error_message() returns message always in English

I use qTranslate-X and a custom login form for users. If user login or password is incorrect I have called get_error_message() for message displaying. It all times return English string. I have ...
0
votes
0answers
16 views

dynamic sidebar showing '1'(text)

i have tried everywhere for it like, my all project files, in WordPress widget(backend), function.php and all is there any way to remove this '1'(text) sorry for poor English FRONT END BACKEND
0
votes
1answer
17 views

Number of posts impacts on wordpress memory usage?

In my wordpress i have to continue to increase the memory limit because every time it requires more and more (in wp-admin area only). Is currently set to 340M, and not enough. Use only plugin that I ...
0
votes
1answer
21 views

How to order array of Custom Post Type IDs on their menu_order?

I have made a relationship (using the ACF plugin) between a Materials CPT (Custom Post Type) and an Offices CPT. Now on the Single Office CPT page I check for the Materials linked to this particular ...
0
votes
1answer
20 views

setting a specific home page for logged in users

After googling, I have a piece of code to set a specific page as home page in wordpress. The code says, add_action('init', 'loginCheck'); function loginCheck() { if (is_user_logged_in()) { ...
0
votes
0answers
15 views

not logged in user's Any Idea? please [on hold]

i searched on google and i found last login user plugins, but what i want is Wordpress list not logged in user's since six month?
0
votes
1answer
17 views

How to transfer one domain to another domain without losing theme options (customizer)?

I have developed the one wordpress site with custom theme, Here I used the custom customizer options. Then site completed on my local machine I mean localhost (http://127.0.0.1/wordpress). Now the ...
0
votes
1answer
13 views

What happens to child theme if I change to new version of parent theme?

What happens to child theme if I change to new version of parent theme? Tesseract theme came out with new version. But what happens to all changes saved in original Tesseract child theme? Will changes ...
0
votes
0answers
8 views

How to pass the Shipping is taxable or not in the woocommerce order API?

I had passed the order data as below given with shipping tax as zero, And also the i am passing the flat rate as shipping method, for flat rate i given the taxable option as none in woocommerce admin ...
0
votes
1answer
22 views

Add code inside specific wordpress standard function

Is it possible to add a piece of code snippets inside wordpress standard function ? In my case I am developing a plugin that will trace the exact location of the caller of wp_delete_attachment method ...
0
votes
0answers
8 views

How to pass the Shipping tax and set shipping is taxable or not in the WooCommerce order API?

I had passed the order data as below given with shipping tax as zero, And also i am passing the flat rate as shipping method, for the flat rate i have given taxable option as none in WooCommerce ...

15 30 50 per page