Questions tagged [page-specific-settings]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
4answers
25k views

How to load JS and CSS only on specific Pages using is_page()?

I am building my first WP plugin, it should load some JS and CSS files only on specific pages selected through a form available in the plugin Admin area. Once selected in the form, Page Title gets ...
6
votes
7answers
17k views

Is there a way to force ssl on certain pages

I want to force a secure connection on some of my pages (ones with forms), but I don't want the whole site to work with ssl (slows it down) Is there a way to configure specific pages to require ssl?
4
votes
1answer
238 views

Custom user role that can only edit specific (non-custom-type) page and all child pages [duplicate]

My site has several static pages and several custom post types. I'm trying to create a custom user role called students and give students access to ONLY certain custom post types and certain specific ...
3
votes
3answers
6k views

How many Wordpress SQL Queries per page?

I am on a shared hosting which has a limitation at MySQL queries per hour. My shows unable to connect to database because of this. Can anyone tell me how many queries are per page on a wordpress site ...
2
votes
2answers
1k views

Can I create a page template, use it once, then hide/remove the option to use it again?

I am working on a WP theme/project that includes several custom page templates that will only be used once each. For example, there is a page with a map and search form for finding things on the map. ...
2
votes
2answers
3k views

Loading Scripts on Specific Pages

In child theme I created a functions.php file that loads scripts and style files, the code is below. The section that loads libraries and scripts to all pages other than admin, in other words the ...
2
votes
2answers
110 views

Hide the Private prefix on one specific page

Trying to conditionally hide the "private" prefix in front of the page title on one specific page named 'members' only. I used this code in functions.php to hide the prefix on all pages. function ...
2
votes
1answer
105 views

Add page title as a javacript variable to specific posts

I'm very new to WordPress and I'm sorry if this question may sound ridiculous. I need a way to add the post title into it's content, only in specific posts, and not always at the same place in the ...
1
vote
1answer
12 views

editor account in wordpress for content

Is that possible we can give client editor account for the user in admin dashboard without all the functionality? In which client can only change content not moreover that. I appreciate it if someone ...
1
vote
1answer
4k views

Missing parent page attribute

Suddenly the parent page attribute is missing on the page edit view. I'm using Wordpress 3.9.1 and the newest Avada theme. The parent attribute has worked. Now it is not shown as page attribute. I've ...
1
vote
1answer
3k views

how to call a function only in specific pages and exclude it from other pages

I have the below functions require_once(GABFIRE_FUNCTIONS_PATH. '/review-options.php'); require_once(GABFIRE_FUNCTIONS_PATH . '/custom.php'); require_once(GABFIRE_FUNCTIONS_PATH . '/shortcodes.php'); ...
0
votes
2answers
29 views

How can I switch pages?

I have website for local restaurant and for menu there are separate pages (ex: salads, soups etc). Right now the second restaurant was opened and it has a separate menu. What I want to do is to ...
0
votes
1answer
326 views

How can you wrap add_filter with a if is_home() statement?

I have the follow code: if ( !function_exists( 'df_excerpt_more' ) ) { function df_excerpt_more( $more ) { return ' &hellip; <a class="more-link" href="' . esc_url( get_permalink( ...
0
votes
4answers
198 views

Finding the page id

I'm not sure if I'm blind here, but short of digging directly into the database tables, where would I find the database id for a post or a page?
0
votes
1answer
620 views

Make a single page in WordPress available only for Admin and Subscribers

I'm trying to make a single page only available for administrator and subscribers from the site. I've put the page as private in WordPress admin and tried to allow that only for these two roles using ...
0
votes
2answers
3k views

How to add specific menu on a specific page or pages

I'm looking for help on how to add specific menu on a specific page or pages with no plugin. I know how to add and register a new menu like this: //* Register third navigation menu position function ...
0
votes
1answer
29 views

How to use Specific URLs for some posts

I'm using the below format for permalinks in my blog: example.com/post-name Now I need to host a giveaway on the same blog and want to make a permalink structure like this: example.com/giveaways/...
0
votes
1answer
312 views

How do I choose not to display the title header on a specific page?

I would like to have one specific page on my WordPress blog omit the header . Is there a way to wrap that title code from page.php in my WordPress theme in an if clause that specifies the page I do ...
0
votes
3answers
181 views

list child-pages as normal pages?

wp_list_pages('title_li=&depth=&exclude='); lists all pages of my site. If there are childpages of a certain page the output looks like this: <li class="page_item page-item-2"> &...
0
votes
1answer
17 views

Assign post category to a page by selecting category from page dashboard

I'd like users to be able to assign a category to a page by selecting from the page dashboard. So when they create a new page they can select the post category they want to be linked and display on ...
0
votes
3answers
31 views

Detecting if I'm on a single, non-post, non-homepage page?

I'm trying to see if I am on a single page, this page is defined by: Is not the homepage for sure. Doesn't have any posts for sure. Here's my code: <?php if ( !is_home() && !have_posts() ...
0
votes
0answers
7 views

Setting admin submenu appears only when I cliked on a custom link

I'm doing a plugin. In this plugin I have to add a submenu for Settings. Code : public function __construct(){ add_action( 'admin_menu', array( $this, 'add_setting_page' ) ); } public ...
0
votes
1answer
394 views

Load specific js & css based on class or ID?

I noticed that there are many tutorials on how to load specific JS & CSS for a specific page. The problem I have is that sometimes my plug-ins load on specific posts and specific pages. I cannot ...
0
votes
0answers
120 views

How to exclude page in pages module

Site has page with url http://example.com/mywpsite/mypage Pinboard theme is used. Pages module shows this in left sidebar. How to remove it from this? Pages module setting contain field excluded ...
0
votes
2answers
199 views

Suggestions for allowing basic users to view their own posts?

I have a client that needs to give access to her clients certain documents. She wants the ability to give them user name and password, so once they log in, they go directly to their page or post which ...
-1
votes
2answers
6k views

Woocommerce product page is not showing custom css [closed]

I am using woocommerce plugin for wordpress to make an eCommerce website. It is working fine with little bit customization. As I have configured shop page as the default product page so that in that ...
-1
votes
1answer
30 views

Page-parent field not appearing in editor [closed]

The drop-down of page parents doesn't appear in some sites as of upgrading to WordPress 5.0.+