All Questions

2
votes
1answer
46 views

Wordpress Version 5 - Another update is currently in progress

I know that a similar question has been asked before, but this is NOT a duplicate because this is specific to Wordpress 5+ and the answers to the similar question have all been tried to no avail. ...
0
votes
1answer
15 views

WooCommerce how to checkout a product without adding it to the cart

I am trying to implement this in my website: Having a second button on a single product next to the"Add to cart" button, let that button be "Buy now". When the add to cart button is clicked, the ...
1
vote
1answer
17 views

get_option() not returning expected value from plugin

I am trying to make my first plugin, and so far everything has been fine except one little annoying thing. I have my fields setup and updating data and looks just fine in my database: mfwp_settings |...
0
votes
0answers
12 views

How to match profiles using WordPress form data

Good day all, Please I need some assistance, I am currently building a website using WordPress to help people in my community who are lonely and suffering from depression. So far I have set up forms ...
2
votes
0answers
17 views

List custom post type by custom tax term as page title

I have a page called "Developments" and I want to list all the Project posts by the custom tax Project Type using the page title as the term. This doesn't work: <?php $title_slug = ...
2
votes
2answers
15 views

Allowing WebP uploads?

I've tried both of these, but I'm still getting the error message: "Sorry, this file type is not permitted for security reasons." // add support for webp mime types function webp_upload_mimes( $...
0
votes
0answers
15 views

Allow user to add the php code in wp_mail()

I have an email triggered like below. I want a user to be able to customize the content. I want to provide the user to be able to put esc_html($user->display_name) somehow may some thing with a ...
0
votes
0answers
9 views

Transfer Subdomain site to Multisite setup

I have two live subdomains on a URL, let's call them sd1.mysite.com and sd2.mysite.com. I am looking to turn mysite.com into a Multisite environment, with both those subdomains being apart of it. My ...
1
vote
0answers
7 views

How to add an extra variable to login and authenticate it?

I want to add an extra variable to my custom login and to authenticate it to then add it to an SQL database. My custom login: <?php require('wp-load.php'); require('site_config.php'); function ...
0
votes
0answers
17 views

Filter posts with tags of the attachment?

Is there anyway I can filter posts with the tags of the attachment? I'm pretty new to wordpress. Current arry: $args = array( 'post_type' => 'post', 'post_parent' => $post->ID, '...
0
votes
2answers
27 views

WordPress CSS problems with controls

Where and how should I even begin to fix terrible design problems? I can't change the theme, I must learn how to fix it the current one, I guess via CSS? How to align all textboxes properly, how to ...
0
votes
0answers
15 views

Getting an empty space in up sell items

I have the current version of wp, and I'm using the tailor theme, and I have my up sell section set up so items show up. However, if an item is out of stock, it creates a random empty space instead of ...
0
votes
0answers
6 views

Creating yearly editions based in user interaction

I must to create yearly editions and separate posts of 2018 edition from posts of 2019. I think, editions can be a taxonomy and years (2018, 2019, etc.) can be taxonomy terms. Then, I can ...
-1
votes
2answers
18 views

moving some text in a specific area

I just installed a new theme on a new WordPress installation. The theme is called FlatOn and it has a static page which I really want to use because I like how it's set up. I modified most of it as I ...
0
votes
0answers
14 views

How to add inputs dynamically in settings page (Plugin)

I have the following function in my plugin and want to add the Datepicker and Textarea dynamically, so that the User can add an row of the same Elements with an "Add" button. I have an array with ...
1
vote
1answer
13 views

Media library quick/inline edit

Posts and pages offers the opportunity for inline editing (Quick Edit), i.e like this. It is also possible for custom post types, but for some reason this is not offered for attachments/the media ...
0
votes
0answers
6 views

Woocommerce recently viewed products and page caching

I am currently using Hummingbird to cache my pages and I also use the Woocommerce recently viewed products widget. I am currently having to exclude my homepage from caching as when caching is active, ...
1
vote
1answer
20 views

Insert Content In Between Post Feed

I am a bit lost and looking for guidance. I have a homepage that lists blog posts. However after every 3rd post (we'll call this the "Main Feed") I want to add a section in between that looks ...
1
vote
1answer
15 views

Why can't I delete original user in multisite? Options for manual removal

So, I've been trying to delete the original user for a multisite installation. After removing the super-admin privileges and setting another user to the network admin, I noticed that hitting the ...
1
vote
2answers
10 views

Display Footer Shortcode Different for Logged In Users

I have a shortcode that displays a block of content. Is there a way I can display different HTML depending on if the user is logged in or not? Below is what I have so far. function footer_shortcode(...
0
votes
0answers
20 views

How to modify the code to include “rel=next” and “rel=prev” tags?

I have a Wordpress site with some posts splitted in pages. I added post pagination via this code: Single.php: <?php wp_link_pages(array( 'before' => '<div class="page-links"><span ...
0
votes
0answers
16 views

I am unable to Split my Long Post using <!--nextpage--> Code

Whenever I enter the command <!--nextpage--> in html, it just breaks my post and does not show next or 1,2,3 pages to go for next broken page. I have already tried to add this code <?php ...
-1
votes
0answers
15 views

Script n Style plugin, add external script [on hold]

I'm using the Script n Style plugin to add some javascript to a post. The javascript relies on the external library plot.ly. How can I include the library (https://cdn.plot.ly/plotly-latest.min.js) ...
1
vote
0answers
13 views

Why wp_is_post_autosave doesn't return anything?

After saving a post I check the console and $is_autosave is simply not set function save_func($post_id){ $is_autosave = wp_is_post_autosave( $post_id ); file_put_contents('php://stderr', print_r("...
0
votes
1answer
16 views

How to make menus, footer, sidebars multi language

I am totally new to WordPress. I recently encountered this problem. I want to make my site 3 languages. I searched a lot and understand how to change the posts and pages languages with plugin, but the ...
0
votes
0answers
14 views

Custom Plugin activation error in Multisite

I have created one custom plugin but when i try to Network Active in multisite its generate error like below But when i install plugin from individual admin its successfully activated. Any help is ...
0
votes
1answer
26 views

The Events Calendar featured image as body background?

<?php if (has_post_thumbnail( $post->ID ) ): $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' ); elseif (tribe_event_featured_image( $event_id = get_the_ID())): ...
0
votes
2answers
20 views

Pass a variable to Contact Form 7

I have post_type 'member' I want to display all members with a contact form so that when submitting a form it will include the relevant member name. <?php $arg = array( 'post_type' => '...
-1
votes
0answers
23 views

Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in [on hold]

Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in /home/MYHOSTING/public_html/wp-includes/class-wp-hook.php on line 286 how can i fix this ?
1
vote
1answer
16 views

How do I display a list of posts under all hierarchical children of the current taxonomy?

Assume the following custom taxonomy structure: USA California Los Angeles San Francisco Oakland New York New York Buffalo Rochester Note: It's just sample data, so don't bother to correct it! ...
1
vote
2answers
28 views

White screen of death after an auto update of WordPress

My website - www.In2BalanceKInesiology.com.au had an WordPress auto update a few days ago and I have not been able to access it since - it is a white screen of death...
2
votes
2answers
30 views

Hide add new page button

I want to hide the add new page button from users that are not administrators. I managed to hide the submenu item from the right column like this: $page = remove_submenu_page( 'edit.php?post_type=...
0
votes
0answers
12 views

WordPress RESTAPI - Restrict unknown

I am not sure about the technical term for what I am looking. However, I have done this in Laravel using middleware. I am trying to achieve same in WordPress RESTApi. I am planning to make a site as ...
2
votes
2answers
28 views

Cant Access Website - Changed HTTP to HTTPs

Was playing around with settings and changed HTTP to HTTPs. I'm now getting a message that says "Index of /". Any idea how to change it back to HTTP or login to the website?
0
votes
1answer
32 views

how can i convert foreach to a function?

i am using the following codes to count the number of times a special string occurs (appears) in wp_postmeta but know i want to convert that to a function to use it in everywhere easily. i want ...
1
vote
1answer
18 views

Which naming convention is latest in WooCommerce?

I'm creating a Woocommerce theme and the classname naming in WooCommerce make me confused. for example: <div class="woocommerce-message woocommerce-message--info woocommerce-Message woocommerce-...
0
votes
1answer
13 views

How do I remove header/page-title image in farvis theme? [on hold]

I'm working with farvis theme. In that theme I removed background image in customize >> page titles & Breadcrumbs >> background image >> remove. But after I clicked save and reloaded the site ...
0
votes
0answers
16 views

Using WP Attachments page as an slider

I'm working in case where you only retrieve 1 image of a custom structure gallery; then that only image will take you to attachments.php where I'm trying to get all the images of the that post in an ...
0
votes
0answers
6 views

WP- Can't seem to Sync new & changed Multisite user roles

My first time here so please bare with me if my terminologies arn't to standard. I have created a multisite network where users can register to create sites "theirsite.mysite.com" Firstly what I am ...
0
votes
0answers
25 views

How can I import and export woocommerce products with image? (Not image link, proper image) [on hold]

I want to export and import products with images, if i import a product from CSV, and I put the image in CSV file. So after upload, wordpress/woocommerce make the image as featured image. Please help ...
1
vote
0answers
18 views

Make Categories a Dropdown Menu in Media Library

I would like the categories menu to appear as a drop-down in both the list mode and grid mode view of the Wordpress media library. As of now, it only appears as a drop-down in list mode. List Mode - ...
0
votes
0answers
21 views

Creating posts on wordpress through mysql

I have all the data stored in the database, the problem is the script im using is duplicating all the content when it creates a post on wordpress. Example: Name of post title in database: MY NAME It ...
0
votes
0answers
14 views

Displaying Most Recently Edited Post

Is there a way of setting up my Wordpress blog so that the most recently edited blog post appears at the top of my homepage and any page to which it is linked?
0
votes
0answers
14 views

Sidebar with Links

Here is a link to a specific part of my blog. At the top of the page you will see a link "Topology Preliminary Exams" (in fact, that is the page I linked to in this SE post). Here's what I am trying ...
0
votes
1answer
24 views

Is querying wpdb directly and skipping actions provided by WP's core “wp_update_post” a good idea?

I need to query a lot of posts at once. A lot and performance is more than crucial here - things moving slow will net me bad reviews, a lot of them, but cutting a bit through WP's overhead could net ...
0
votes
0answers
52 views

Theme is Enqueueing Everything in Footer

I am developing a theme. Nothing special at the moment. In my functions.php I've added support for post thumbnails, title tag, and have one custom post type. In my header I have wp_head() and footer ...
0
votes
0answers
19 views

How to add a special Woocommerce “Buy Now” button?

I wish to add a "Buy now" button on product page, and redirect to checkout page after clicking it but without adding the product into the cart. For example, if there are already products 1 and 2 in ...
0
votes
0answers
17 views

How can limit search result using ajax?

I need limit m'y search result .. If result>100 a message will ne show in the form "inaccepted query".. Else it will be pass to search results view.. I need help to implement it with ajax.. ...
-1
votes
1answer
21 views

How to include wp-load.php and have all plugins load as well

Why load wp-load.php 'use wordpress ajax instead' no This is for testing only. I have a test page I use for local development only, e.g. test.php in my themes folder Now when I do this: global $...
0
votes
1answer
14 views

Overcoming “noindex” false positive in Search Console

In our website's Search Console, it is saying that 65 of our pages are marked "noindex" (see this screen capture: http://prntscr.com/lvrla2) This is our robots.txt file: http://prntscr.com/lvrlry ...

15 30 50 per page