Issues when changing permalink Structure
I got rid of the error, it was the theme itself who blocked the portfolio form changing, edited some code from the theme solved it. The website is done in an old theme which is no longer supported 🙁
I got rid of the error, it was the theme itself who blocked the portfolio form changing, edited some code from the theme solved it. The website is done in an old theme which is no longer supported 🙁
I had the same issue and found a solution. From what I learned so far, there might be two causes to this problem: WP doesn’t recognize your rewrite rules because they are not cached yet. You can check this by dumping get_option( ‘rewrite_rules’ ); and if your rules did get cached, then they’ll be in … Read more
The parameter you are using is wrong. There is no set_front parameter when you register a Custom Post Type. The appropriate parameter is with_front. ‘with_front’ => bool Should the permastruct be prepended with the front base. (example: if your permalink structure is /blog/, then your links will be: false->/news/, true->/blog/news/). Defaults to true http://codex.wordpress.org/Function_Reference/register_post_type#Arguments
See requirements. Most of the time it’s due to server configuration.
It sounds like you need to copy the file /blog/index.php to /index.php and modify a line in the new copy you create: require(‘./wp-blog-header.php’); to require(‘./wordpress/wp-blog-header.php’); Here is a complete guide to moving WordPress into a separate folder: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Question interested me, so I took a shot. Not tested, so recommend backing up the wp_posts table before running (though you should do so regardless!) As mentioned in the comments, don’t forget to replace “domain.com” in the regular expression with your own. require ‘wp-load.php’; // Only needed if *not* a plugin. function out_with_the_old( $match ) … Read more
The template tags the_permalink and the_title do not return values, they echo them. Use get_permalink and get_the_title instead. As an aside, the earlier are simply wrappers that echo the return of the latter. As another aside, yes, the naming is inconsistent. (And yes, that’s annoying. At least to me.)
get parameter for this is paged. Example: mydomain.tld?paged=2
You can filter home_url: add_filter( ‘home_url’, ‘wpse102523_home_url’ ); function wpse102523_home_url( $url ) { return $url . ‘index.php/’; } Reference: Adam Brown’s Filter Database
I can’t tell if you want a link to the thumbnail or you want the image to be the thumbnail. To get the image assigned to the post as the thumbnail image, use get_the_post_thumbnail: $thumb = get_the_post_thumbnail($post_id, ‘thumbnail’); To get the thumbnail using the attachment ID use wp_get_attachment_image: $thumb = wp_get_attachment_image( $attachment_id, ‘thumbnail’ ) Not … Read more