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
675 views

How do I approach removing menu items on the fly based on settings in my plugin?

I've started writing a plugin that allows the administrator to select specific pages and set them to be visible only to logged-in users; the plugin optionally applies the restriction to all child ...
0
votes
0answers
17 views

How to Enable Add page and Edit page

I tried a lot to solve this problem but I can't User role selected as Administrator Add page option and Edit page option is missing from wordpress All Plugins In Active plugins
0
votes
2answers
1k 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, "...
1
vote
2answers
3k views

How to “group” (categorize) the Pages together?

I have a lot of Pages which can be (need to be) grouped under a number of different Categories. ** Then the more important thing is, i need to control those pages (of different groups) programatically ...
0
votes
2answers
543 views

how to change the permalink to a specific location?

I have this slider on my front page. Right now when I click on an image it goes directly to the permalink and the post. How do I make all the slides go to one specific page? this is the loop for the ...
0
votes
2answers
853 views

Get post content from outside the loop with plugin shortcode usability

This is great for showing just the raw content... Get post content from outside the loop But i'd also like to apply shortcodes from various plugins to my content to affect the content. What would I ...
0
votes
1answer
8k views

Front Page not showing on Pages

Newbie here. I set my Front page to show my latest posts using Settings/Reading. However, the Front page itself doesn't show up in Pages, which is preventing me from doing some editing (using Beaver ...
0
votes
2answers
1k 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
2answers
1k views

How to properly enable comments form in page template

I've applied the following code to enable the comment section in the page template. <div class="col-md-12"> <?php while ( have_posts() ) : the_post(); ?> ...
11
votes
3answers
16k views

How to load javascript on custom page template?

I have a custom page template where I would like to load some javascript. I suppose I could always include the javacsript in the actual file, but that seems ugly. Is there any way to identify if ...
7
votes
4answers
17k views

How can I get the title attribute from get_the_post_thumbnail()?

In my theme I want to display the featured image, but I also want to display the title attribute (of the image, not of the post/page) beside the image itself. Is there a simple way to do this? Where ...
0
votes
1answer
16 views

How to prevent WordPress from redirecting single page to prefixed category archive with same name?

I have been trying to solve this problem for hours. I would like to have a page with a simple slug (/blog) and a category term with the same name (/category/blog) exist on my site together at the same ...
0
votes
0answers
11 views

Wordpress Sticky Post Count “Fix” Breaking Pagecount by 72 pages!

I have a permanent sticky post on my front page and have implemented the code (pasted below) into my functions.php file to stop it adding an extra post to my post count on the front page (it's a grid ...
2
votes
4answers
3k views

How to inject custom url path for page ?

Is it possible to make custom URL path for pages ? The current page url is http://localhost.dev/insight which I need to show like http://localhost.dev/city/local/insight are any option in wordpress ...
0
votes
2answers
3k views

Woocommerce featured image of page - not product

I have a custom theme in which I have a woocommerce.php file to display the shop homepage. This is simply: get_header(); ?> <div id="primary" class="content-area"> <main id="main" ...
0
votes
0answers
5 views

Page Title has a navy portion behind it blocking part of feature image

I am using the Full Width - Parallax Title as my Page Attributes and have selected a Feature Image. This works on all of my pages except for "About Us" which has the feature image and then a ...
0
votes
1answer
13 views

How to get custom page template being edited in gutenberg editor

I want to know custom page template name (the one chosen in page attributes - template) in PHP, before page opens in order to enqueue additional scripts according to chosen template. I know how to get ...
6
votes
5answers
28k views

Is there a way to change the default page template selection?

Click on "Pages" -> Click on "Add New" In the add new page screen. The default page template selected is "Default Template". Is there a way to change the default ...
0
votes
1answer
1k views

Pagination url for page template

I am creating a page template in WordPress to show all my posts. But i have a problem with pagination. I have a page url like below: http://localhost/sdd/video "video" is my page slug. And the ...
0
votes
0answers
14 views

How to add categories for pages only?

I have added this function in my functions.php file to show category option for wordpress pages. It works fine. function support_category_for_pages() { // Add category support to pages ...
1
vote
2answers
991 views

How to redirect login and register pages

I have a WordPress site which has the built-in login form with the url http://domain.com/wp-login.php and register page http://domain.com/wp-login.php?action=register I want to display these forms on ...
0
votes
2answers
2k views

Automatically search and replace link in content (pages/posts)?

The users of my site mainly share documents by inserting links into content (pages/posts) using the built in editor. These files include everything from pdfs to word documents. The users currently get/...
0
votes
1answer
12 views

page-slug.php not working but only for specific slug

I'm trying to create a page called "Comics" with the slug "comics" to use as the main table of contents for my webcomic site. I've created a page-comics.php file, however when I ...
1
vote
2answers
771 views

How to retrieve attachments from child pages of a specific Page?

How would I retrieve attachments from all subpages of a specific Page ID? Example: SPECIFIC PAGE Child (with attachments) Child (with attachments) Child (with attachments) I'm currently ...
0
votes
3answers
9k views

Admin taking a very long time to load

Logging into my site's Wordpress admin backend take several minutes. The site indicates that it is loading and then just hangs for many minutes before finally loading. It smells like something is ...
0
votes
2answers
911 views

ACF: Echo page title when checkbox is checked

How can I show the title when a checkbox is checked. I use Advanced custom fields my field name is nav This is what i currently have. <?php if(get_field('nav')) { ?> <li> <a href=...
0
votes
1answer
2k views

Updated Wordpress, now getting errors on site

I just recently updated my Wordpress, theme, and plugins, and am now getting these two errors on top of the homepage and pages page. Deprecated: wp_make_content_images_responsive is deprecated since ...
0
votes
0answers
12 views

Main Menu Appears But Sub Menu Does Not Appear

I have added the top menu code below as follows. Home page names are visible, but sub pages are not. How can I fix. $defaults = array( 'theme_location' => 'header-menu', ...
0
votes
0answers
23 views

Why does updating permalink structure only update posts and not pages?

This might sound like a stupid question but I've honestly looked everywhere. Currently my WP Page structure is {site-title}/{page-title}. This works fine, however I want to change the permalink ...
1
vote
0answers
10 views

How to delete page by deactivating plugin

register_activation_hook( __FILE__, 'myplugin_activate' ); function myplugin_activate() { //create a variable to specify the details of page $post = array( 'post_content' ...
2
votes
1answer
1k views

List children of second level sub page

Top Level Page - Second Level Page --- Child Page --- Child Page --- Child Page The goal here is to list all children of second level, I have that done from the codex. However, when I click ...
0
votes
1answer
1k views

Page with the same name of a category

I've a category, let's say "testcat". I want to create some pages which the final url should be "http://example.com/testcat/pagename". To do this, I should create a page named "testcat" and then a ...
0
votes
1answer
20 views

Create page template

I am completely new to working in Wordpress but have some skills in coding. My company has a website where we write about different publicly traded companies. I want to add company specific pages to ...
0
votes
1answer
13 views

Plugin frontend page design irrespective of the theme used

I am writing a WordPress plugin which will have some front-end pages including inputs, forms, buttons etc. The plugin should be usable with different themes. But I am confused or don't know how to ...
4
votes
2answers
26k views

How to display the page title/content in the Posts page?

I made a home.php file and called it Blog. It set it to be the Posts page, but I would like to add a title that will be displayed in that page (the title of page or content). e.g: Posts page: ...
0
votes
1answer
555 views

Add the same content to multiple pages

I have a website with over 500 pages. Dont ask why but none of these pages have any content in them. I have created a page layout to be added as a single wp bakery block and want to add this same ...
0
votes
1answer
2k views

How to create plugin auto create page wordpress?

I want a plugin can create auto page insert into database wordpress. How ?
0
votes
0answers
14 views

How do you tie a database to a block?

I am rather new to wordpress, and need help tying a database to a block and get it to function like a search engine for a candidate.
1
vote
2answers
512 views

Loop and Page template : my WP_query don't take args

I have a problem with a loop that I try to put into a custom Page template. I would like to display posts with conditions, but whatever I put in my WP_query parameters, it is not taking in ...
0
votes
2answers
10 views

Change the size of the featured image for post?

Is there a way to change the size of featured images on posts? When I click on one of my blog posts, I can see it’s extremely large and inefficient. https://graduateinvestor.com
0
votes
1answer
497 views

How to extract images of post and pages excluding header and logo image in wordpress?

I have tried this code to get all images from media library and i am sucessfully getting the source urls of all the images but now i want to exclude all the unwanted images like logo, header images ,...
0
votes
2answers
856 views

How to add an external php page with wordpress?

i want to add a page with html data to show form and get input from user,store it to database and after successful query show next page with massage that the data is inserted successfully.
0
votes
2answers
1k views

User profile in front-end

I want every user to get a profile in the front-end of my website. So I want to visit website.com/user/user-name and view all the information of this user. Is this somehow possible? I would like to ...
0
votes
2answers
23 views

how to get a list of all top level pages

I am trying to figure out how to get a list of the permalinks for top-level pages only. My goal is to put them in a selection box on a form. I have spent a couple of hours searching here for an answer ...
1
vote
1answer
918 views

I Changed the Menu Order, But the Page Order Didn't Change on Front Page

First-timer here! I'm trying to change the order of pages on my boardgame webpage, as displayed on the top banner www.mangakagame.com . Basically, I've used "Edit" in the Dashboard and adjusted all ...
0
votes
0answers
11 views

How to enable pages that have been hidden unless a user is logged in

I've inherited a Mutlisite Wordpress network (so I don't have all of the details around how it's been set up yet) that contains 3 sites. One site hides all pages from users unless they are logged in ...
1
vote
1answer
19 views

How to redirect a page to another?

On my website, I have following url structure: example.com/test/ example.com/test/a-page example.com/test/another-page How can I redirect all of the URLS that contains /test/ right after the domain ...
0
votes
4answers
687 views

how to edit source code of specific page in wordpress?

i am taking a hard time to figure how to do it. I have three different pages in my wordpress installation besides the Homepage. I need to edit each one of them separately, remove header, footer and do ...
1
vote
0answers
36 views

WASM page in Wordpress website

I used emscripten to generate some html/js/wasm/data files and would like to add that as a page to my (Wordpress) website. Is this possible? If so, how?
1
vote
1answer
550 views

Adding Author and Updated Schema Markup to WordPress Static Pages

Google Webmaster tools is showing me some errors in the Structured Data section. The error says it cannot find author and updated information in some of the URLs on my website. Most of these URLs ...

1
2 3 4 5
48