All Questions
115,430
questions
0
votes
0
answers
35
views
Content on 90% of my website looks to have disapeared
Website is www.woodslabs.ca. I was having issues with an error appearing when trying to edit pages so I reached out to my hosting company for help.
After a few back and forth they were able to get ...
0
votes
0
answers
17
views
How can I make a daily streak feature on my WordPress site? 🌟
How can I make a daily streak feature on my WordPress site? 🌟
I want users to click a button each day to track an activity (like reciting a dua). If they miss a day, the streak should reset. Any ...
0
votes
0
answers
9
views
RSS Feed URL redirecting to site URL
I have the following Blog on WordPress. My blog is not showing RSS Feed instead redirecting to the homepage. how should i find or add RSS Feed for my blog.
1
vote
0
answers
30
views
Hide PUBLIC posts in the LOOP from LOGGED-IN users
I am trying to achieve this:
When users are logged in, and they look at the loop in Home page, they should see ONLY private posts.
Public posts should be hidden from them, as they are redundant.
I ...
0
votes
0
answers
8
views
Custom API how to return int field
I have a custom table in db with a column recommendation of type int(11).
Then as one of my custom route handlers I have
global $wpdb;
$query = "SELECT recommendation FROM `restaurants`;
// ...
0
votes
1
answer
12
views
Adding content to the top of post's based on their category
I'm trying, but struggling to add a specific div to the top of a post, based on the category it is assigned.
For example, at the top of the content, if it's tagged with 'basketball' I want to add ...
0
votes
0
answers
12
views
Can you add a line break above all <h2> tags?
Here's how my text looks like in my text editor - https://prnt.sc/FPDv_zIwQz2R
Here's how the web page appears when previewed - https://prnt.sc/fvKit11H3Xr4
As you can see, there's no break above the ....
0
votes
1
answer
27
views
Parse error: syntax error, unexpected token "endif", expecting end of file in C:\xampp\htdocs\Blog\register.php
I am trying this code but not getting the result, what should I have to try?
<?php if(count($errors) > 0): ?>
<div class="msg error">
<?php foreach ($errors as $...
0
votes
0
answers
19
views
WordPress Page Width Issue: Seeking Solutions
Hello Google Help Community,
I am facing an issue with my WordPress website, specifically with two pages - "About Us" and "Guest Post."
These pages are currently aligned to the ...
0
votes
0
answers
13
views
Something broken with the forum at wordpress.org?
for a couple of weeks I haven't been able to log into https://wordpress.org/support/forums/ or even register for a new account.
After I try to login, I get an error message saying: "Log in to ...
0
votes
0
answers
6
views
Moving formatted data in Salesforce rich text field into Wordpress
I am new to moving Salesforce data dynamically into Wordpress. I am wondering if it is possible to retrieve data in a rich content Salesforce field and pull it into Wordpress without losing the ...
0
votes
0
answers
26
views
How can I modify the shortcode values of a nextgen gallery using php?
I am trying to modify the parameters of a NextGen gallery shortcode when displayed in a theme template.
I paste the shortcode into an ACF WYSIWYG field like this
[ngg src="galleries" ids=&...
0
votes
1
answer
11
views
Unexpected warning message to my WordPress posts which group and listed out by year
I have my WordPress posts looped and listed out by year successfully.
However, I am unsure why I still received a warning message.
Warning: Undefined variable $year_check
Below are the codes that I ...
0
votes
0
answers
16
views
How to add input field value to Users in Wordpress Dashboard
I've got a request where the client would like to store provided emails in the WordPress Dashboard so they can access them for marketing.
I've added an email input field like so:
<div class="...
0
votes
0
answers
34
views
config @wordpress/scripts with webpack and postCSS features
I using wordpress as CMS and I want to config @wordpress/scripts with webpack and adding PostCSS and it's plugins like: postcss-loader, postcss-import, postcss-simple-vars,postcss-nested, postcss-...
0
votes
1
answer
22
views
Wordpress fallback rewrite
we have a situation where, for the same permalink, there could be both a page and a custom post, for example "car".
https://www.example.com/aaa/bbb/carPostID
Normally at that address there ...
0
votes
0
answers
31
views
Jest Unit tests for High order component containing Block Editor
everyone!
I created High order component HOC which adds additional panel to Advanced section at the right sidebar
Something like this:
import React from 'react'
import {InspectorAdvancedControls} ...
0
votes
0
answers
19
views
How to add default folders to Every registered User when registered in WordPress site?
I need some guidance on my work. As soon as the clients register on a WordPress site. I want the clients to see 4 folders by default: 2002 2003 2004 and Firm Documents.
Once the clients activate their ...
0
votes
1
answer
25
views
Implementing onSplit/onMerge in dynamic Gutenberg Custom Blocks
I’m working on a custom dynamic Gutenberg block. I’d like it to act like a normal rich text paragraph (e.g., can be split or merged as needed), rather than have multiple “paragraphs” included in one ...
0
votes
1
answer
8
views
Conditional Content Linked to Cookie Value Only Shows on 2nd Page Load
I have the following 2 functions in functions.php
// Function to set the plan cookie
function set_plan_cookie() {
if (isset($_GET['plan'])) {
$plan_value = sanitize_text_field($_GET['plan']...
0
votes
0
answers
6
views
custom post type dynamically shows in menubar in wordpress
I am developing a hospital website in wordpress. For that I make a custom post type "Services". All the hospital services (ex:ICU, CCU, NICU, Emergency etc) are going under this "...
0
votes
0
answers
28
views
How to edit category/archive page?
Basically I want to customize this page to make it look like this page, however I can only edit text over the featured image with my theme. Is there a way to edit the category/archive page (sorry for ...
0
votes
0
answers
26
views
Weird Issue - Wordpress Multisite - Cannot Access subdomain's pages
Good evening to everyone. I will try to describe my (weird) problem, as detailed as possible and any help would be greatly appreciated.
I had a multisite that worked great. My company asked me to ...
0
votes
0
answers
20
views
How do I use Google Custom Search to find and show words based on input characters on the same page in WordPress?
I want to use Google Custom Search to find and show words based on input characters on the same page. I see some WordPress websites use Google Custom Search like this: they place a search form inside ...
0
votes
1
answer
21
views
hook on the_excerpt
I would like to have the excerpt length formatted + [...] and then keeping the 'read-more' as a button.
I was able to hook the 'excerpt_length' from 55 to 25 and that was fine:
function ...
0
votes
0
answers
11
views
WordPress Polylang can only use one language
I am using Polylang in WordPress to construct my site. It worked perfectly for the first half year, while I was not actively updating the site during the time. The second language suddently not ...
0
votes
0
answers
13
views
What is the error and how can I fix it please?
Notice: Function is_post_type_archive was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for ...
0
votes
0
answers
34
views
Skip un-set meta fields ("Invalid field: fieldname") when using `wp post list` and displaying custom fields
We have custom fields called country
and coordinator.
This works:
$ wp post list \
--post__in=81153 \
--post_type=boardmember \
--fields=ID,post_title,post_name,post_date,post_status,country,...
0
votes
0
answers
11
views
images inside uploads folder will return 404
My images will not load . accessing anything inside the uploads folder returns 404 https://digitalzoomstudio.net/wp-content/uploads/2022/11/image-1-1024x617.png
I am 99% sure I am not crazy and that ...
0
votes
1
answer
28
views
Different date time in results of search
In my search.php file i have a loop which succesfuly gives list of search query.
global $wp_query;
$total_results = $wp_query->posts;
if ( $total_results ) :
foreach ( $...
0
votes
0
answers
8
views
What setting can I change as my email forms don't work with some phones or ESIMs?
I have tried lots of different things but can't get email working from subdomains. If I use something like CF7 the little wheel just keeps spinning for some people in Japan using ESIMs or VPNs from ...
0
votes
0
answers
27
views
Custom Blog using input Files
I would like to create a blog page on my WP site using the following mechanism:
1 Users write their text to a local .txt file
2 txt Files are uploaded daily onto the WP site using FTP
3 The WP blog ...
0
votes
1
answer
28
views
Encountering 400 Bad Request Error When Sending Form Information to API through Elementor
I’m currently working with an API and Elementor, and I’m trying to send form information to the platform API. However, I’m encountering a 400 Bad Request error when making a request to my server. The ...
0
votes
1
answer
49
views
hide specific css and js files in specific page wordpress with id or without?
Hi guys i have google and searched and tested codes i finded here but nothing works, i have wordpress site and i want to make some css and js dont load in the first page because some plugins puts the ...
0
votes
0
answers
22
views
Transmit headers and footers via API from one site to another
I'm trying to have the same header and footer as my WordPress site on another site (that doesn't use WordPress) with a different domain and hosting. The manager of the other site wants it via API but ...
0
votes
2
answers
46
views
Add line break for menu items
I have some items in my menu that I would like to be set on two lines.
For example I have these items :
Home - Get in touch - Contact us
For the item "Get in touch" i would like the "in ...
0
votes
0
answers
4
views
"Joined in" or "Member since" displayed on single store page and then using shortcode to add
I'm trying to add the registration date of users (vendors) to my single store page. This would ideally read "member since (date)". I also want to use shortcode so I can apply this manually ...
0
votes
0
answers
17
views
Wordpress next/previous post link
I need help, please. I'm a newbie on Wordpress.
This code is working:
$previous_post_url = get_permalink(get_adjacent_post(false, '', false));
$next_post_url = get_permalink(get_adjacent_post(false, ''...
0
votes
1
answer
19
views
WordPress Media File - Hard Code
On our website, we have a downloadable PDF guide. I know I need to upload a PDF to the media library and copy the media file URL, but under what section would I find the hard-coded area to make the ...
0
votes
0
answers
9
views
how to display the actual size of the picture in post
I'm a beginner WordPress user and I have an issue on my site, the pictures in a post that I'm adding are displayed not in the actual size, but adjusted to the max page width. Attaching the picture as ...
0
votes
0
answers
14
views
issues having 2 reader accounts. need to log in to two different accounts
I am confused. I have wordpress.com hosted by a company. When I log in to my admin account on wordpress it is different to the log in details for my wordpress reader? I have to put in different ...
0
votes
0
answers
6
views
I've mistakenly installed another wordpress in my main domain instead of subdomain
All of sudden, my main domain show me nothing but a newly made website. All of my articles are lost now, anyone have idea how to get my old data back? I'm close to get AdSense approval.
Please help me ...
0
votes
0
answers
7
views
WPForms Product URL
I'm changing from ContactForm7 to WPForms. Is there a way to have the mailform link to the url from which they were sent? This is meant for product inquiries so the sales team can easily review the ...
0
votes
0
answers
12
views
Send email with a PDF embedded
I am trying to send an email with a PDF embedded in the body of the email. The email gets sent, but the PDF doesn't show up. If I view the source of the email, the code does show the embedded PDF, but ...
2
votes
0
answers
41
views
How to get Gutenberg pattern sync status for custom pattern listings table?
I am using classic WordPress (no FSE) but with Gutenberg. I have registered a submenu page for the post_type wp_block to get an admin interface for my Gutenberg patterns.
Since WP 6.3 they merged ...
1
vote
0
answers
19
views
How do I get my Gutenberg element to prevent last modified from updating?
I've added a checkbox on my Gutenberg post, that when checked, is supposed to prevent Gutenberg from updating the post's post_modified and post_modified_gmt columns. The checkbox manages its own state,...
0
votes
0
answers
7
views
wordpress woocommerce templates did not update?
I have two sites, one sandbox and one live.
Woocommerce needs a core updates so I updated all the plugins, WordPress and Woocommerce. In wp-admin->woocommerce->status on my sandbox under ...
0
votes
0
answers
27
views
Trouble Sending Elementor Form Data via cURL in WordPress
I'm adapting the code to retrieve information from the Elementor form. I've referred to the documentation, and I have an example code snippet.
function send_custom_webhook( $record, $handler ) {
...
0
votes
0
answers
9
views
My Wordpress plugin don't show the button on Gutenberg
I create the follow plugin to fullfill this: "Create wordpress plugin that does the following:
Has a button that shows up in the Gutenberg editor for a post, in the sidebar, often referred to as ...
0
votes
0
answers
16
views
WooCommerce / Elementor change Add To Cart button text and link for variable products
I'm trying to edit the 'add to cart' button on WooCommerce and I'm using Elementor products widget to show them on shop page and other category pages.
I need to change the button text to 'Quick Add' ...