All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

only the first post is shown

I want to show posts in index page but just the first one is shown!this is the code: <div class="w3ls"> <?php if(have_posts()): while (have_posts()) : the_post(); ?> <...
0
votes
0answers
12 views

Different booking data depending on service

OK, I'm doing a different question a little bit more specific. I'm developing a booking based website, where you can book for you and your friends in several differents places. I have been doing some ...
0
votes
0answers
12 views

Word press at Server have Page with specific post name not working other all pages is working

i am facing a problem on server. i have a page with post name contractors, it's show an empty page with error message below when i rename its permalink it will start working. but need the post name ...
-1
votes
0answers
9 views

how to add function.php code/ woocommerce-Price-amount.amount -> cart total(subtotal) price. (same) [closed]

how to add code function.php code woocommerce-Price-amount.amount at product page price -> cart total(subtotal) price.
0
votes
0answers
6 views

Display or replace the custom field image in guest auhtor box bio pic from specific post in coding

I want to display, the image from the custom field in the guest author box of the post who has not registered.
0
votes
0answers
10 views

How to show only post of one category in post page

I have 2 categories in my website, 'News' and 'Blog', and my post are shown in the post page, not in the home page, because in the home page I have to show diferent things. My post page is called ...
-1
votes
0answers
16 views

Woocommerce simple products to product_variation

Is there any plugin or script to convert the simple product to variation product and assign it to the parent product. As far as I check each variation product creates as a post, with post_type - ...
0
votes
0answers
9 views

wpc product bundle price is diffrent cart price [closed]

I used wpc product bundle. but product bundled price is can't show in the cart. for example, 2 bundle price is 45$ at product page. but in the cart page is 70$. how to equal price setting at cart (as ...
0
votes
1answer
21 views

Remove Header and style.css from Specific Post template

I want to add some custom code so I've created a custom post file with the following content. <?php /* * Template Name: Custom App * Template Post Type: post, page, product */ ?> <?php ...
0
votes
0answers
7 views

template_redirect hook sending wp_mail twice

I have a few restricted pages. If a user tries to access those, I warn them by email using wp_mail and alert admin with some data such as username, URL, time, etc. For that, I am using the ...
0
votes
0answers
16 views

How to load Dashboard default media files via HTTPS even when Browser URL has HTTP

How to load Dashboard default media files via HTTPS even when Browser AddressBar URL has HTTP On all Admin Dashboard pages, I want to force the loading of all CSS, JS via https, even when URL in ...
0
votes
0answers
10 views

How to add filter to post_name just for a CPT

I was seeing this post on how to add a filter that allows adding dots to post_name. I made a change to use only dots. I want to make it work only for one type of CPT. But I don't know how to check ...
0
votes
0answers
10 views

Trying to load the site via domain but automatically redirects to IP

I have moved a site which was developed in localhost to a new web host with a new domain. I updated the site_url and home_url in the wp_options table. I put a basic .htaccess file to the webroot. But ...
0
votes
0answers
9 views

meta query condition don't work

I have created a custom post type (Event). I want to show only two posts on the front page and the post should be greater than or equal to today's date. So I write this meta_query. $today = date('ymd'...
0
votes
1answer
18 views

Staging Sites: What to push through?

I have a staging site where I am improving the theme and layout, adding a couple of plugins to add a slide in navigation bar etc. The issue is that on the live site, people are signing and purchasing ...
0
votes
0answers
11 views

Order All Pages table in administration

In administration, in the "All Pages" section, each time I add a new page the table is refreshed order by page Title. I reorder the table clicking on "Date" column to keep working on the last updated ...
0
votes
0answers
23 views

Wordpress Responsive Image ( srcset ) not work properly

I have a very strange problem There are images with the correct size on the host and image sizes are properly recorded in WordPress But I get the following html code output <img width="300" ...
0
votes
0answers
14 views

<DIV> being repeated twice - No explanation?

So I have an extremely strange thing happening. I am trying to properly layout my checkout page using Bootstrap's Grid framework. All seems good, except for in the payment method section. When trying ...
1
vote
0answers
18 views

Can't Delete or find a blog post (unknown)

today I noticed a weird problem in my wordpress woocommerce site. The site has blog enabled. When visiting the site, I can find a blog post, can see as a visitor. But when I logged in as Admin it ...
0
votes
0answers
9 views

When to use get_template_part versus a function

What are good guidelines on when to use get_template_part() versus code in functions? I have both throughout my theme, and I think I've used them correctly, but I'm suddenly not sure I can articulate ...
0
votes
1answer
17 views

How to map numbers utilizing array function

I would have thought this would be simple, however, I'm having a hard time with it. I have this function and I'm having a hard time mapping numbers. I have a spreadsheet that I import with WP All ...
0
votes
0answers
17 views

how to sanitize customizer checkbox control

When trying to use a sanitization callback for a value which I would like to store as boolean, I keep getting an error in the Customizer saying "Invalid input" for a checkbox (the error appears almost ...
0
votes
1answer
23 views

Delete oldest wordpress post (SQL query)

I've reached the database limit on my hosting platform. I want to add a function to my functions.php that deletes the oldest post in my database anytime that I publish a new post. function ...
1
vote
1answer
21 views

Use an empty page to build custom plugin output

I've been Googling for an answer to this and have yet to find much of use. I have seen plugins that will say "pick the page for showing X" and "pick the page for showing y". Then if the page is ...
1
vote
1answer
15 views

Displaying different in-page content to cliente/admin

i'm a young informatic engineer student who is developing his first wordpress website. It is a booking website when a client can see the available hours in certain local and book it, and the local can ...
0
votes
1answer
21 views

How to display search results in search.php

I am trying to display search results in search.php , but no results showing. it just show this search results for: then the keyword I put in the search box only nothing more. so the actual results ...
0
votes
0answers
14 views

Add #primary at the end of navlink permalinks on single posts

I'm trying to add #primary at the end of the permalinks to the previous- and next post on all single post pages, to jump past the header directly to <div id="primary"> when going to the previous ...
0
votes
0answers
9 views

How to load WP-Postratings via AJAX?

WP-postratings Adds ratings to WP. It's the most downloaded ratings plugin on the repository. Votes are sent via AJAX but the rendering of the plugin is not. As a result when using a caching plugin ...
0
votes
0answers
9 views

Woocommerce - Shipping rate increase every 3 items added [closed]

I have two shipping zones with a flat rate assigned, $2,50 and $7,60. I would like to make a price increase about the same amount every 3 items. Example for the zone with $2,50 shipping cost: 1 item $...
0
votes
0answers
9 views

Woocommerce “Request a Quote” Plugin “Undefined Variable Error” after Submit [closed]

I am receiving a few error messages after I submit a quote. Everything works fine, the quote goes through and I receive the email, but I am left with these errors on the success page: Notice: ...
0
votes
0answers
9 views

how to change footer quick links menus(Primary menu) for certain pages

Need to change Footer quick links menu and footer tagline for certain pages only we have working on School site it have both higher secondary school pages and nursery school pages if we click the ...
0
votes
0answers
8 views

wecashup payment integration with wordpress [closed]

I use wecashup plugin to use in my wordpress website as payment gateway I create user in wecashup site and get merchant id, secret and public id but when i enter place order it can't get any response ...
0
votes
0answers
17 views

Is the date when a theme was activated stored?

Is there a date for when the currently active theme was activated stored anywhere? If so, what's the best way to retrieve it? Thanks
0
votes
0answers
11 views

How to improve wordpress mysql performance on large tables? [closed]

I've installed WordPress 5.4.1 on Ubuntu 20.04 LTS on AWS EC2 (free tier as I'm starting). My instance has 30 GB of disk space and 1 GB of RAM. My website has at about 9000 pages and I've imported ...
0
votes
0answers
12 views

i want to run python script in wordpress

i have a search algorithm that is in python code. i want to integrate that algorithm on our website which is made up of WordPress PHP. Please tell me the way, how can i integrate the python wordpress ...
0
votes
0answers
8 views

How to setup default value of post_id

I setup fresh wordpress. When i create new post, post id will start not with id = 1 How to set start id of post id?
0
votes
0answers
8 views

WP 301 redirect does not work

Usually on my WP sites when I change the URL, WP automatically creates a 301 redirect. Lets say I have this URL: www.site.com/ugly-long-url If I change it to www.site.com/nice-url Then when I ...
1
vote
2answers
15 views

redirect to a dedicated sign in page

I am creating a plugin to redirect all sign in attempts to a dedicated page rather than using the builting wordpress page so i created this hook action for the admin_init with the highest priority ...
0
votes
0answers
12 views

Download link in the loop that a customer have bought

Im running basic product loop with featured image and title. Under that I want download link to be available if the user has bought that digital product. I tried this but it shows downloadable bought ...
1
vote
1answer
19 views

how to change site tag line for particular pages

I need to change my site tag line. Basically, this is school site we create for xyz higher sec school and ABC Nursery school; so I need to add both as a tag line in my site if I use xyz higher sec ...
-1
votes
0answers
6 views

Wordpress Post Pagination customization

What I need is: split post buttons to show as below.. like it should show FIRSTPAGE PREVIOUSPAGE 1 2 3 .. 7 8 9 NEXTPAGE LASTPAGE this is for WP POST and not page. Please help if possible
1
vote
0answers
12 views

Getting value from dymanic text variable into Contact Form 7

I have an inscription form and I'm using Contact Form 7, Conditional Fields plugin and Dynamic Text Extension. I want to show different prices according to the option selected and get the price for ...
0
votes
0answers
14 views

Manual Cron job occasionally outputting WP die message

I have some manual cron jobs running on my server hourly - they seem to generally fire fine, but occasionally they output the WP die message page html (see below) to the cron output logs which i have ...
0
votes
0answers
13 views

404 Rest Route not found - when serving behind “proxy”

To avoid CORS and speed up my static site, I have made a "proxy" from my static site. Basically, I can make a request to: staticsite.com/wp-json/some-endpoint and it fetch and return the response ...
0
votes
0answers
11 views

Wordpress post status change from published to draft

I created custom post type (I used geodirectory). I need, If somebody edit and save on frontpage, change from publish status to draft status. It is possible? Thanks
0
votes
1answer
11 views

add_post_meta add latest data from meta_value array

I want to add list of color to a product attribute with following code: function wcproduct_set_attributes($post_id, $_attributes) { $i = 0; foreach ($_attributes as $name => $...
0
votes
0answers
9 views

woocommmerce Html Table in product page : save select value in order and email

I Want to add table in single product page woocommerce table with dropdown list like shown in the image link 1- add table in the single product page or for certain product category 2- select value ...
0
votes
1answer
30 views

Search if menu item has child in wp_get_nav_menu_items hook

I am conditionally showing menu items. All is fine but want to remove parent item if returning no child items. For example if I have a parent menu (it will always be a custom link with #) called ...
0
votes
0answers
8 views

Woocommerce - Fixed inventory quantity for a product

I’d like to make the inventory quantity of a certain product fixed or static regardless of how many orders are placed. Is this something that can be done through php?
0
votes
0answers
15 views

load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available

I tried to update Avada theme using ftp. I deleted Avada folder and copied that again from zip file I downloaded. Since then, I am facing these errors: Deprecated: load_plugin_textdomain was ...

15 30 50 per page