Temporary download page or restrict static download page based on how the user got to the page?

For your first question “Detect where they are coming from”, Just check the $_SERVER[‘HTTP_REFERER’] for your expected web address. For the second “Create a short lived page”, your answer lies in the set_transient() method. You can do something like: function create_page() { if ( get_current_user_id() ) return “<html>…</html>”; return false; } function get_page( $unique_id ) … Read more

Filter posts by author selected in page

You can write your own query to include or exclude posts from an Author, This page has documentation about the options you can pass to a query. http://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters Here is an example to only get posts from the user $author. $author_query = new WP_Query(‘author_name=”.$author); for user “Amin’ : 🙂 $author_query = new WP_Query(‘author_name=Amin’);

All the pages are blank [closed]

The problem was with the theme of the website. So the error was here: /home/—/public_html/wp-content/themes/ifeaturepro/page.php on line 15 Here is the correction: echo ‘<script type=”text/javascript” src=”https://use.typekit.net/ngr4yya.js”></script>’ . “\n”; echo ‘<script type=”text/javascript”>try{Typekit.load();}catch(e){}</script>’; Strange. The person that coded the theme put HTML in the PHP.

Custom admin menu for a selection of pages

Approach 1: You could assign the role of “editor” to the user, assign the user as author of the three pages and thereafter limit the user to editing only those three pages by following this outlined methodology: http://www.godaisies.com/2010/08/23/how-to-make-editors-only-able-to-edit-their-own-page-in-wordpress/ This however does not fulfill your requirement of a dedicated custom admin page. It simply limits what … Read more

making a pseudo-static page

Create single.php in your themefolder and insert this code get_header(); ?> <div id=”primary” class=”content-area”> <div id=”content” class=”site-content” role=”main”> <?php /* The loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( ‘content’, get_post_format() ); ?> <?php twentythirteen_post_nav(); ?> <?php comments_template(); ?> <?php endwhile; ?> </div><!– #content –> </div><!– #primary –>