Questions tagged [pages]

Pages are static, timeless content that are unique from the regular blog chronology.

Filter by
Sorted by
Tagged with
2
votes
1answer
133 views

problem to delete page

I have a "page" or "post" that I can not find anywhere. I would like to delete it, but I can not find it anywhere. I have already looked at the list of posts and pages, and even the database. Follow ...
7
votes
3answers
2k views

Apply the_title() filter in post & page title, but not in menu title

I use the following code to change the title of WordPress posts and pages. But it changes nav menu item titles too, which I want to avoid. I want to change the title of posts and pages in: home page, ...
1
vote
0answers
30 views

Can't locate a hidden private page

I have 9 published page, and 1 private (invisible) page, in total 10 pages. However, my wordpress says that there are (2) private page, and total of (11) pages. How can I locate the unseen page?? FYI,...
0
votes
0answers
37 views

get_pages causing duplicates

I am using get_pages to get all the page content for my front page. I am passing post_content through the content filter $content = $page_data->post_content; $mycontent = apply_filters('...
0
votes
0answers
145 views

Allow Static Page Load Dynamic Child Pages

I am new to WordPress -- extreme wet behind the ears as you call it. Using these forums I walked my way through creating my own blank theme and custom templates. I am looking to take one of those ...
1
vote
3answers
24 views

How to create a custom page(not a template) in a theme

I have been searching for theme developing info but all that are related to this subject are talking about a custom page at page.php. What I am trying to achieve is different. The scenario is that I ...
1
vote
1answer
19 views

How i can add 'N' page of 'N' pages under posts loop?

I want show number of current page and count of all pages, near my posts paginations. I am talking about this
2
votes
1answer
856 views

Duplicate Category and Page URL loads Category instead of the Page

I have created a Category with the slug service, which has the permalink: https://example.com/service. and a Page with the link: https://example.com/service. In the Category service, there is a post ...
1
vote
1answer
184 views

Way to querry data (tags) from a wordpress database?

I need to query the WordPress database and display the data on one of my pages. I've looked and search for tutorials online but none of them are really complete. I am trying to display a list of all ...
0
votes
2answers
794 views

Changing logo depending on page on Total theme

Is there a way in changing the company's logo without editing the CSS itself? So when a certain page/link is clicked, the logo changes accordingly. Highly appreciate!
0
votes
1answer
309 views

Hide Visibility Option From WordPress Publish Metabox

I want to hide visibility option on publishbox for PAGE post_type like you see in red square on the below picture. Thanks.
0
votes
1answer
7k views

Remove “Category Archives: title” at the top of a category page [duplicate]

I created a category page that's linked to the main menu. It posts the categories fine, but it has the text "Category Archives:________" at the top of the page. Does anyone know to remove this. I'm ...
-1
votes
1answer
115 views

How do delete a meta key?

Unlike the rest of the platform for some reason, there is no apparent way to simply modify a meta key where it lists them for a given page. I created a meta key as a means of testing, but I can't find ...
0
votes
0answers
25 views

Pulling images from the media folder category to display inside a page

I'm looking to pull images from the media library by a certain category. The images are uploaded by the client themselves via the Media menu in the admin panel and they also select the category. The ...
0
votes
0answers
12 views

Mailchimp RSS feed work with single wordpress page?

I'm trying to implement automated emails which sends my subscribers an email when a single page on my website is updated. The single page contains a table with data which updated manually every day. ...
0
votes
1answer
37 views

Output Post with ACF Fields into other Post

I got a post that should be embeded, included or outputted - however you call it - into another post. I prefer a solo code variant. So far I have tested various shortcode plugins - but they don't ...
0
votes
2answers
39 views

How to create a page that shows the last 10 posts?

I'm new to wordpress and am trying to develop my first own theme. The thing is: the front page must be static, with no display of posts. But I need a blog section and am trying to do it by creating a ...
0
votes
1answer
17 views

How can I make a category function as a page?

I apologize if this is a simple question but I'm entirely new to the website-building process. I have no prior experience. That being said, if the answer requires complicated HTML or CSS, then it won'...
0
votes
0answers
58 views

wordpress page navigation numeric pagination showing same posts on each navigation

Hi I have a similar issue with page nav, we are showing listing and due to the amount want to page them, We have got most of the code sorted but seems to just duplicate the page and not sure the ...
0
votes
1answer
187 views

Check if the child page has sibling pages, and bookmark current page

I already check if the secondary page has sister pages and I show it in a list of sister pages within each secondary page, but when I am inside a sister page, in the list where I show it I want to ...
1
vote
1answer
30 views

Highest number of WordPress Custom Page Templates?

I'm little bit rookie in understanding WordPress core. But I would like to know that, is there any limit or should we limit to how many custom "page" templates we make in our custom theme? My ...
0
votes
1answer
24 views

How to create custom search page

So I'm trying to make my search.php file loop through three custom post types when doing a search. I currently have three cpts , post, anime, peliculas and I'm currently using a function that will ...
0
votes
2answers
23 views

Show code only on WooCommerce Pages

Does anyone know how to put code into your theme that will only shop up on WooCommerce pages? I want to add a cart link but don't need it to shop up on the rest of the site. Thanks!
1
vote
0answers
114 views

Advanced Custom Fields dynamic update_field

I have a function that is triggered when a new review is submitted on a specific page. function rex_my_action ($review, $post_id) { $some_value = get_post_meta( 753, 'rwp_user_score', true ); ...
1
vote
1answer
28 views

How can I redirect to my custom page without loading the Dashboard itself?

I'm creating a page using: /** * Add the admin menu item, under Appearance. */ public function addAdminMenu() { $page = add_theme_page( esc_html__( 'Setup' ), esc_html__( 'Setup'...
0
votes
0answers
2k views

My Password Protected Pages Aren't Working

I have a home page that includes images with links to three other pages. Each of these three pages is password protected, (I used the same password for each.) Now when I or anyone else clicks on the ...
0
votes
1answer
50 views

How to tell if a page has subpages for Custom Post Types

I would like to show a page depending on whether it has a subpage or not. That is, if you have subpages, do not display the subpages, only the parent page to which it belongs. Something like this: ...
0
votes
0answers
73 views

WordPress dosn't save page/post updates

Any suggestion what could cause the problem, that a WordPress site doesn't save any changes in one specific page? After making any changes in a page, it doesn't save the changes. However, from time ...
0
votes
1answer
59 views

Page Contents showing in Footer Area

I am using Parallax Theme with the updated & current version of Wordpress, Elementor Plugin. I have created Custom Menu currently with 2 Pages. My page contents keep showing all the details in the ...
1
vote
0answers
25 views

Share parent path between Custom Post Types and Pages?

Here's my situation: I have a custom post type I created called "professions" with three professions ("military", "firefighters", "law-enforcement"). I created a page single-professions.php to use ...
0
votes
1answer
12 views

Add homepage to the list of pages in the Footer Widget

How do you add the homepage to the list of pages appearing in the footer widget? I've spent a few hours looking around for a function adding the list of pages in the footer widget but I can't seem to ...
0
votes
1answer
100 views

How do I hide the current page's title?

I have this code: add_filter( 'the_title', function() { return ""; }); Or, respecting the hook's arguments: function remove_title( $title, $id ) { $title = ''; return $title; } ...
0
votes
2answers
2k views

Disable pagination in posts and pages

I need to solve duplicating of posts and pages caused by unexpected paging. I am trying to disable the paging with this function, but it seems I miss something: function wpse_disable_pagination( $...
1
vote
1answer
346 views

Check whether the child page has siblings

Is there a way to check whether the child page has sibling pages. That is, whether they belong to the same parent page. If so, display the list of siblings pages within each child page. Example: ...
-2
votes
1answer
32 views

how to add a page to a plugin?

Im trying to add a page programmatically to a store by installing my plugin. I tried to create a template but it seems to be the wrong way. can someone help ? thanks I DO DONT need a tamplate, i need ...
-1
votes
1answer
15 views

Additional scrollbar appears inside the browser on every page + lag scroll -Winner theme

All the pages have a inner scrollbar which appears with lag in scroll sometimes . I have checked disabling all the elements one by one but could not get it to work Please help. Thanks
0
votes
2answers
249 views

loading a php file to a specific page id

I'm trying to assign a php file to a specfic page? I have modals stored in different files and want have them load in when their assigned page is called. These pages are using the same theme, "...
0
votes
3answers
39 views

Get largest page id by title?

Assuming there are a few pages with same title, how to get id of the page that has the largest id (newest)? I have tried get_page_by_title, but it returns the smallest id (oldest).
0
votes
0answers
42 views

WP pages content is missing in frontend

I created a page which is listed in the top navbar but if i click on the link it loads a new page without the content of the page itself. That is the page shown after clicking on the admin link in the ...
0
votes
0answers
32 views

How to publish pages under a subdomain url?

I have created a subdomain as: blog.example.com How to put publish my pages as blog.example.com/page1 blog.example.com/page2
0
votes
2answers
42 views

Hide page templates without using 'unset'

I have custom page templates that are not commonly used. How do I go about hiding these templates from selection in the 'Page attributes > Template' drop-down? Unset is not an option as ...
1
vote
1answer
18 views

Remove ID page from wp_count

I'm try to create a pages counter excluding certain ID pages but the code don't work. I'm using this code. How can I fix it? Thanks. <?php $count_pages = wp_count_posts('page'); echo "$...
0
votes
1answer
76 views

How do I quickly hide a hierarchy of pages from search engines and external users?

I use Multisite to manage the various languages of a web site. The original language site has a huge page hierarchy (navigation items with plenty of sub-pages and sub-sub-pages), à la I've cloned ...
0
votes
1answer
197 views

Add (grand)child pages automatically to nav menu

I want my submenus to be generated automatically. I've used some plugins for this, but after a while they don't get updated anymore or they have a conflict with the theme I use. I followed this ...
0
votes
2answers
52 views

$_GET parametters not working in an specific template

i'm developing a plugin wich uses GET parametters to decide what to render to the user(example: login, logout, change password etc..), the thing is this works in the standards wordpress themes but ...
0
votes
2answers
64 views

Getting page / post URL on publish and / or update

I am trying to use a simple publish_post / publish_page hook to get the URL of the post/page when it is either published or updated so I can later turn it into a static page. Is it possible to add ...
0
votes
1answer
23 views

How to detect if some page template has been selected

I'm wondering if, in the static front page, is possible to detect if the some page template has been selected for my page. I'm building a template and I'd like to have a static front page, but I'd ...
0
votes
1answer
21 views

Page with Category Returning 1

I am a beginner and looking for some guidance please. I have added a function so I can have Categories for my Wordpress Pages function my_page_category() { register_taxonomy_for_object_type('...
0
votes
1answer
16 views

Page takes on two different formats

I want to show a list generated from two tables. I have a page with a shortcode that loads the information just like I want. The shortcode runs a function called member_list. In this function, I have ...
0
votes
1answer
78 views

Get all pages that are published

I need to get all visible (published) pages and then determine which template they use. I need to do this in standard WordPress API not via the REST API. Is there a function that can do that?