Display different pages based on form entry

Welcome to WPSE. Based on the additional information you provided, static pages with the list of users changing only once per year, I would recommend simply using the built-in “Password Protected” publishing option. The Publish metabox (typically in the top right corner of the page editor) has a few options beyond the default public visibility. … Read more

List of pages of a specific user

I have found how to do it. Here is the code: $author_query = array(‘posts_per_page’ => ‘-1′,’author’ => 1,’post_type’ => ‘PAGE’); $author_posts = new WP_Query($author_query); while($author_posts->have_posts()) : $author_posts->the_post(); ?> ■ <a href=”https://wordpress.stackexchange.com/questions/318709/<?php the_permalink(); ?>” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></a> <br /> <?php endwhile; more information: see here

How can a .css file be applied to a virtual page?

You can hook into wp_enqueue_scripts and use wp_enqueue_style() the same way you normally would, but use the same condition you use to change the template to conditionally enqueue the stylesheet: if ( get_query_var( ‘dump’, false ) !== false ) {} So you you’d load the stylesheet with this method: function enqueue_stylesheet() { if ( get_query_var( … Read more

Create multiple custom HTML pages

You can created pages within wordpress itself and then assign a custom template. You may store the template files however you like as long as they are wihtin the theme folder itself. https://developer.wordpress.org/themes/template-files-section/page-template-files/

Deleted WordPress page appears in Google Search Results

Since that page has already been indexed you can do a couple things. 1 – Add a rule in your .htaccess file that tells search engines not to index the page User-agent: * Disallow: /rights 2 – Use Google’s Remove URLs Tool. The Remove URLs tool enables you to temporarily block pages from Google Search … Read more

Why my home page doesnt work?

On your site you can see things like [vc_row xt_pattern_opacity=”100″ xt_bg_repeat=”repeat-y” xt_text_scheme=”lighter- overlay”][vc_column width=”2/3″ css=”.vc_custom_1440884085800{padding-right: 0px !important;padding-left: 0px !important;}”][vc_row_inner][vc_column_inner] It show that your theme is using Visual composer plugin but it is not activated so you have got to upload it and activate it.

How to include a query_vars value in document_title_parts?

If your query var tags is registered properly then the following code snippet will definitely work, I’ve tested it. It’s a modified version of your code snippet. Please make sure to add the code to your functions.php file. function prefix_custom_title($title_parts) { global $wp_query; if (isset($wp_query->query_vars[‘tags’])) { $title_parts[‘title’] = $wp_query->query_vars[‘tags’]; } return $title_parts; } add_filter( ‘document_title_parts’, … Read more

Recovering a page from the drafts

You can easily recover a page from the drafts. follow the steps below: See a link ” Trash” on the top of pages listing section. Click on that link which will take you to the section where all the trashed pages are listed. Select the page(which you want to publish) using the checkboxes against them. … Read more