How to redirect all pages of a blog to a new blog
I don’t know if you are still looking but did you see the following post: How to: 301 Redirect /category/ to /customname/
I don’t know if you are still looking but did you see the following post: How to: 301 Redirect /category/ to /customname/
<form action=”” method=”post”> should be <form action=”options.php” method=”post”> Must have overcompensated for something there.
Try turning down the posts per page in screen options. The posts per page actually sets the number of PARENT posts to get, so it will get those posts and their ENTIRE tree. If you turn this down, say to around 5, you should significantly cut the size of the page, since it will decrease … Read more
pre_get_posts is correct. the code from will prevent any non-admin from seeing anyone else’s posts. http://blog.rutwick.com/display-only-the-posts-authored-by-the-current-wp-user-on-the-posts-page-in-the-back-end to limit that to only 1 post type you’d add in one more condition and check $typenow == ‘your_custom_post_type’: add_action(‘pre_get_posts’, ‘filter_posts_list’); function filter_posts_list($query) { //$pagenow holds the name of the current page being viewed global $pagenow, $typenow; //$current_user uses … Read more
If you use something like as you suggest why is that cheap and ugly? it saves you from having to rebuild a whole search mechanism, and dealing with the template hierarchy. and as you say it’s sharing html on the search page. Go for it!
The insideds of a function is separated from the global things. Therefore the variables, set by other processes are not reachable/useable inside a function until you made them so, with, for example global keyword for a var. So Add the_post(); after the function’s {, or add global $post; and use $post->ID instead of the_ID and … Read more
Fixed this now, answering for anyone googling. In a recent version of WordPress the Permalink functionality has had quite an overhaul, making Advanced Permalinks unnecessary, at least in my use case. More info here.
First of all – “good” is a bit vague a term.. Good for what ?? IF you mean technically valid , there are SOOOO many items to check, that you can fill a whole website with it . Those items also depend on personal preferences and are not always objective AND are changing with time … Read more
See the Codex page on using AJAX in Plugins properly and use wp_localize_script to pass data from php to javascript.
I think you can better use get_post_meta(); Your code will look like this: <?php $site = get_post_meta(get_the_ID(), ‘projLink’, true); ?> <?php if(isset($site) && $site != “”) : ?> <span><p><a href=”https://wordpress.stackexchange.com/questions/38943/<?php echo $site; ?>”>Visit the Site</a></p></span> <?php else : ?> <p><em>Live Link Unavailable</em></p> <?php endif; ?> You use var_dump only for testing purposes (http://php.net/manual/en/function.var-dump.php).