All Questions
2,540 questions
1
vote
1
answer
567
views
Disable featured image
From the description of the plugin "Hide Featured Image":
There are instances when one wants to show featured image on single
post and hide it on another post. This plugin will allow you to ...
0
votes
1
answer
14
views
WordPress Animation Adjustments
I have a problem with my WordPress animations. https://cyals.com is the website Currently developing. I Use Elementor Page Builder to build my page. a man and a woman load with animations one by one ...
1
vote
0
answers
80
views
Serve specific "template" page at any URL that ends in its slug
Still new to WordPress, so please go easy on me.
Goal:
Prevent users of a specific role from viewing other custom post types made by users of same role.
Intended solution:
Modify the URL and redirect ...
0
votes
0
answers
34
views
I want to add another search box on posts page in dashboard
There is already a search box in wordpress dashboard for posts, products, pages etc. in their listing page.
My client use wordpress admin with their phone so he requested another search box on top of ...
0
votes
1
answer
240
views
Cover block always has margin
I'm working on a website where I want to have some group blocks where I want to add some images of patterns to just make the website a bit nicer than just plain colors. I'm using a cover block to hold ...
0
votes
1
answer
495
views
Website jumps to top when scrolling down
I have a problem with one of my customers pages. When I click a link on the website or when I refresh the page, it automatically jumps back to the top when I immediately start scrolling. If I wait for ...
0
votes
0
answers
54
views
How to backup just pages from my site, but not posts with other post_type values
I want to backup just pages from my site, but not posts with other post_type values, so my first question is – will this do the trick?
enter cPanel phpMyAdmin
filter the table wp_posts for post_type=...
1
vote
1
answer
259
views
Change the slug of a particular page every x hours
Is it possible to rewrite the slug of a particular page (e.g. Page-ID 123) with a wordpress function?
I found this somewhere but It doesnt work and I am also looking to simplify it as I just want to ...
0
votes
0
answers
694
views
Permanently deleted posts still exist
So, I deleted multiple post of type page (sent them to trash, went to trash and permanently deleted them), but one of my functions didn't work like it was supposed to so I went and investigated, it ...
0
votes
2
answers
593
views
First archive page with a few posts
I'm looking for a way on how to display only a few posts on a first page of my archive. This is my archive template — page-archive.php, which I am using as a template to display all my posts/recipes:
&...
-1
votes
1
answer
601
views
Wordpress pagination returns the same posts
I did search the other posts here related to this problem, and tried all of them in my case, but I can't seem to make it work (probably because I don't know enough code)
Can you please help me with ...
0
votes
0
answers
17
views
My worpress search page is showing no results
I want to display the publications searched for via searchform.php in the search.php page but it does not work ...
The search is done well when I look at the url (ex: New World):
http://localhost/?...
0
votes
0
answers
26
views
Create a List of Widgets, where each widget holds three attributes
i have a specific wordpress page, in which I want to add expandable items.
So the item has a keyword and when I press it, it expands and more specific text will show up.
The styling and setup of such ...
0
votes
1
answer
327
views
A function to get the content of a page
I have an Elementor page and I need to get the HTML and CSS output of it without the header and footer to use in an email plugin I am making. Is there a function in WordPress that can do this? I've ...
0
votes
1
answer
185
views
Edit post & page option does not display on latest wordpress
I am not able to edit the WordPress default posts/pages from front-end. I have tried to deactivate all plugins, check/uncheck toolbar option(from profile) and also wp_footer() function in the file.
...
0
votes
1
answer
662
views
How to dynamically parse and transform post/page content before displaying it?
I have several posts where part of the displayed content will depend on several conditions.
I am thinking on creating a custom html tag. Then, before displaying the post content,
the conditions will ...
0
votes
1
answer
286
views
Show only pages you are author of
I am trying to only show pages that a user is the author of for any role other than administrator. The code below seems to put the site in an infinite loop and it ultimately dies.
add_action( 'load-...
0
votes
0
answers
168
views
Copy/paste local images not working in Wordpress
This is somehow frustrating. I am ussing the latest version of Wordpress
I am running my webpage, and when I need to copy-paste an image from Internet into any of my posts/pages I have no problem.
...
0
votes
1
answer
767
views
Automatically redirect a page to a category that share the same slug
This question shows me how to redirect a category to a page that share the same slug, but how would I redirect a page to a category with the same slug?
e.g. abc.com/slug ---> abc.com/category/sub/...
0
votes
0
answers
194
views
Can't find the page that is using a slug
I am using Wordpress test site and working on a page where I can display Team members. At some point I was working on two Team pages at the same time, just to compare which style I liked more. Along ...
0
votes
0
answers
47
views
Use get_pages() before another plugin modifies it
In my little plugin I am using get_pages() to get some specific pages. Important is the usage of "child_of" and a custom field key.
$pages = get_pages([
'child_of' => 206, //Gets ...
0
votes
1
answer
55
views
How do I attach a page to a category similar to how we attach media to a post?
Is it possible/how do I to attach a page to a category similar to how we attach media to a post?
ps. I'm not asking how to assign a category to a page.
update: I need to attach a specific page ...
0
votes
0
answers
27
views
Automatic duplicate/copy of post to a related page in WordPress
I have a website about introducing softwares and apps. I created pages and so menus (named by categories).
I set my WordPress setting homepage to latest posts. I create posts and give them categories ...
0
votes
1
answer
24
views
Create a loop on my pages with new "WP_Query"
I wanted to loop through these four pages. Basically I would like my loop create a "li" by "page_id". I just know this is from my "new WP_Query" which is not good.
How ...
0
votes
1
answer
63
views
Bad pages redirection
I have a wordpress web site with only a private pages (can only be viewed by logged users)
I use the below code in my theme functions.php to be redirected to login page each time a put the page URL on ...
0
votes
1
answer
67
views
Block to Popup Page, on demand?
I have embedded HTML in a block which renders a Python console.
What I want to do is to be able to pop-out the Block in a separate window.
If that is not possible then may be a link that when I click ...
0
votes
1
answer
41
views
On the list of Pages, clicking to Edit a particular page redirects to the list of trash
Here's the background. I created a page called "New Home Page" to eventually replace the original "Home" page. When I was ready, I renamed the original Home page to "Old Home&...
2
votes
1
answer
557
views
Set a specific page as 404 - not found via my own plugin
I'm developing a plugin that create some pages and set a specific template for each of these pages.
It creates a page in which it sets a template for 404 - not found, how can set this specifc page as ...
0
votes
0
answers
660
views
Is there a way to find all posts with Youtube video embedded?
Is there a way to search all posts and pages in my WordPress site and find those who have a Youtube video embedded in them?
The reason to do that is I want to disable the wp-embed.min.js but before ...
0
votes
1
answer
62
views
Odd twitter meta data description on all pages
On this page – https://cloudmonitor.ai/contact-us/, if you do a View Source, you can see the following meta data:
<meta name=”twitter:description” content=”Contact Us Contact For Premium Business ...
0
votes
0
answers
75
views
Give custom page template a custom post ID
I created several custom pages in WordPress. One displays real estate listings. When you click on the listing it opens into another custom page I created.
The problem is no matter which listing I ...
0
votes
1
answer
48
views
How to transform a custom made static HTML website to a WordPress website [closed]
I have an assignment from a customer to transform a custom made static HTML website to a WordPress website.
First I thought "That's easy, just make a theme & import it all there & link it ...
0
votes
0
answers
55
views
Revert a Draft page to its original version
I recently went into my Main Page to make some changes, and my inexperience with the new block mode caused me to mess it up. However, I had saved the messed-up version as a Draft.
Now, I want to get ...
0
votes
1
answer
313
views
How to use custom page for all posts with custom url, call another directory?
I have tried many different codes:
<a href="<?php echo get_template_part( 'template/test/post' ); ?>"> Test 1</a>
<a href="<?php echo ...
0
votes
2
answers
919
views
How to redirect to category page if page does not exists?
In my current case, the system try to find a page and show 404 if it does not find.
I would like with the same url... like https://example.com/{{slug}}/
Check if a page with this slug exists :
Yes - ...
0
votes
1
answer
1k
views
Page category filter in admin dashboard
I created page category by this way ( or custom taxonomy with the help of ACF Extended Plugin). It works. Now I can add pages into category. My problem is that, I can not filter pages by category in ...
1
vote
0
answers
25
views
Text Editor Tags
Hello Wordpress StackExchange,
I'm embarrassed by what is probably a rookie question, but here it is:
I migrated and took over a website that a friend hired another developer to create, but I don't ...
1
vote
0
answers
74
views
Make parts of your wordpress website completely built with data from external APIs?
I have experience with building frontends with react.js that use external data from RESTful APIs (from a headless CMS).
Now I have someone ask me if I could build a wordpress website that has several ...
0
votes
1
answer
252
views
What is the text that appears beside the page titles in the list of pages in the WP admin?
Refer to the image below:
What is the term used to describe the text that appears right after the page titles on the "All Pages" webpage of the WP admin?
e.g. In the image above: an em dash ...
1
vote
0
answers
29
views
Missing Pages (Drafts?)
When I go to "All Pages" it tells me:
All (29) | Published (24) | Bin (1)
but when I click on All it only shows me the 24 published pages, not the 29 pages it thinks are there (which I ...
0
votes
1
answer
102
views
Simulating a wp page - wp page load sequence
I'm toying with a honeypot to catch form spammers. I've hidden a link to a non-existent page in the footer. What I'm attempting to do now is, when they visit that link, to display a form that looks ...
0
votes
1
answer
109
views
Is there a way to know when a page has been updated and do some action only once?
Have few pages in wordpress cms. Whenever any page is published or updated, there is need to do some action (basically call an API to update some data in another backend service).
For publish, I am ...
0
votes
1
answer
257
views
Make Audio Element Persistent Across Pages
I'm making a radio site and as part of that there's a listen live element which uses an audio plugin. When the user clicks on a navigation item to bring them to a new page the audio stops (...
0
votes
1
answer
141
views
Template field missing in page attributes
Hi I ma trying to assign a template to a Wordpress them. There is no such option as per attachment??Changing the theme does not help...Thanks for the help
5
votes
2
answers
3k
views
How can I see a list of pages and post where my custom Gutenberg block is used?
Background: Creating Custom Gutenberg Blocks and the Challenges with Breaking Changes
I am new to creating custom Gutenberg blocks (each block is a separate plugin) and have recently ran into the ...
0
votes
1
answer
168
views
Add prefix to url, but products not showing in page SHOP
I have managed to add a prefix in the url of my site, now my site allows entering the Shop page with these two urls:
misitio.com/tienda
and with the prefix:
misitio.com/us/tienda
When I enter with the ...
0
votes
2
answers
3k
views
How do you search for a post or page with a certain url on the Wordpress admin panel?
How do you search for a post or page with a certain url on the Wordpress admin panel? I have a page with the url www.tomatoes.com/promotions, but I can't find it by entering it in the search field of ...
0
votes
1
answer
21
views
When will body has class "page-id-0"
In my other project, I've been relying on checking body's class to find out what page the current webpage is using.
However on this page http://seminary.fbny.org/register/ the body has a class page-id-...
1
vote
1
answer
59
views
load common thank you template with different content for different pages
i have created a template called thank-you.php and inside that i want to show different content as per the parent url. for e.g. mywebsite.com/page/thank-you and mywebsite.com/another-page/thank-you. ...
0
votes
1
answer
62
views
How to highlight 1st level menu item based on actual page
I am trying to highlight 1st level menu item by adding 'current-menu-item' class using nav_menu_css_class filter based on actual page / article / post / etc.
For example, menu looks like this:
...