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’);

Wp Pagenavi how to display all results

I replaced it with: $out .= $instance->get_single( 1, ‘first’, “All”, 100, 1 ); And I changed the get_single function, more exactly I added a parameter, “all”, and this one won’t afect anything else. function get_single( $page, $class, $raw_text, $format=”%PAGE_NUMBER%”, $all = 0 ) { if ( empty( $raw_text ) ) return ”; $text = str_replace( … Read more

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.

How to use page metadata while using wp_list_pages()?

You can do it easily with jQuery by using .eq() to add a specific class to each i element. Example: Add a class to your i element from PHP. <?php wp_list_pages(‘link_before=<i class=”retina_icon”></i>&link_after=<br >’); ?> Then add another class to it with jQuery. jQuery(‘.retina-icon:eq(0)’).addClass(“retina-icon-1”); jQuery(‘retina-icon:eq(1)’).addClass(“retina-icon-2”);

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

One of my posts is displayed as page

It seems that http://www.regensburgerturmtheater.de/loriotabend/ page is an attachment view page. I recommend you just change the name of this http://www.regensburgerturmtheater.de/wp-content/uploads/Loriotabend.jpg photo to different (in admin panel).

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)