How do I control the list of Pages an author can see?
How do I control the list of Pages an author can see?
How do I control the list of Pages an author can see?
Here is a simple widget to get you started. You should be able to tweak it to get the effects you want. class recent_pages extends WP_Widget { public function __construct() { // widget actual processes parent::__construct( ‘recent_pages’, // Base ID ‘recent pages’, // Name array( ‘description’ => __( ‘Show the recent pages’, ‘foo’)) // Args … Read more
How to create multiple pages in a client theme?
There is a way to do this code. You can hire a dev or check out this plug in: https://wordpress.org/plugins/user-access-manager/ It looks to have the features you need. If you are interested in diving into the backend, the place to get started is by building custom page templates. Here is some good resources on page … Read more
You can use get_option to get your option values. Below is an example <?php $selected_name = get_post_meta( get_the_ID(), ‘your_meta_key’, true ); $options = get_option( ‘your_options’ ); // If your names are separeated with comma $names = explode( PHP_EOL, $options); ?> <select name=”your-select-name”> <?php foreach ( $names as $name ) { printf( ‘<option value=”%s” %s>%s</option>’, $name, … Read more
If you are making a one-page website, and you are going to use WordPress, create a WordPress “Page”, and put your content in it. Then in the Dashboard > Settings > Reading > Front Page Displays, select “A static page”, and choose the page you created. To create a WordPress “Loop” within a page, you … Read more
I recommend bookmarking this Image from Wordpres Codex Template Hierarchy As you can see on it Blogs page uses home.php as template while front page is using front-page.php.
I am not sure which white area you mean (the one above the line?) but that can be done by adding the following to your CSS: header.page-header { display:none; } div.entry-content { margin:0 auto; } Ideally do this in a child theme.
you need to add the loop before and after and add the function the_content() something like this: <?php /** ** Template Name : Home **/ get_header(); ?> <?php while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; // end of the loop. ?> <?php get_footer(); ?>
Found the solution after i posted the question: i need to disable directory browsing. Just put: Options -Indexes in .htaccess and it’s done.