Articles of page specific settings

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/post-name I don’t want to use categories or tags in all my post URLs. Is there any way I can do that without errors?

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 register_additional_menu() { register_nav_menu( ‘third-menu’ ,__( ‘Third Navigation Menu’ )); } add_action( ‘init’, ‘register_additional_menu’ ); add_action( ‘genesis_before_content’, ‘add_third_nav_genesis’ […]

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 the code above but it is not working properly. Any help will be appreciated. <?php if ( have_posts() ) […]

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?

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( get_the_ID() ) ) . ‘”>’ . esc_attr__( ‘Read More’, ‘applique’ ) . ‘<i class=”ion-ios-arrow-thin-right”></i></a>’; } add_filter( ‘excerpt_more’, ‘df_excerpt_more’ ); } I’d like to add a second line of “add_filter” […]

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 create some kind of switch – so user can select what restaurant he wants to see. And he […]

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 with default theme instaled on? PS: I haven’t any plugin installed.

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’); require_once(GABFIRE_FUNCTIONS_PATH . ‘/post-types.php’); i want them to be called only on specific page or exclude from specific pages. I’m confused on how to do this in function.php please help! the functions i showed above, does conflict with Q&A plugin. this takes place […]

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 content. I’ve done some research, but all I find is about changing functions in .php files […]

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 title_format($content) { return ‘%s’; } add_filter(‘private_title_format’, ‘title_format’); add_filter(‘protected_title_format’, ‘title_format’); Tried to hook into this with the if is_page ( ‘members’ ) […]