Page content doesn’t display when published but does when previewed as draft?
This turned out to be a bug in WordPress version 3.4.2. Bug report http://core.trac.wordpress.org/ticket/15665 It’s been fixed and will roll out with WordPress version 3.5
This turned out to be a bug in WordPress version 3.4.2. Bug report http://core.trac.wordpress.org/ticket/15665 It’s been fixed and will roll out with WordPress version 3.5
There is a column in the term_relationships table for term_order which seems to imply that one could set the order of terms. That said, it looks like it doesn’t actually work — the core doesn’t use it in any way. A bit of poking around in wp_set_object_terms, the function that get’s used to assign terms … Read more
It sounds like you’re using “pretty permalinks” with %postname%. If so, you need to make sure that you don’t have page names that match your post type names. WordPress can only allow a particular slug to resolve to one page (that’s why you can only get one or the other to work at a time). … Read more
Turn off all plugins, switch to TwentyTen or – even better – this theme. Then add another post with an ridiculously long title Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon Source: Wikipedia Then see if it works now. If it doesn’t: Re-install WP from the Admin > Dashboard/Updates page. If it does work, activate one plugin and retry, then the next … Read more
In your .htaccess file put: RewriteCond %{REQUEST_URI} \.html$ RewriteRule (.*).html$ /$1/ [R=301,L] That should redirect with a “moved permaently” from the .html pages to pages with the endings stripped. It should probably go above your WordPress rules. It should even preserve query strings– at least it did when I tested it.
Add the following to your theme’s functions.php file, making sure you replace the example CDN URL with your own: function my_cdn_upload_url() { return ‘http://mk124.yourcdn.com/yoursite/wp-content/uploads’; } add_filter( ‘pre_option_upload_url_path’, ‘my_cdn_upload_url’ );
You could see if a custom page template fits your needs. Create a Page with the desired permalink, then set its page template to “my_template.php”, and you’re good!
For something like that, you need to use custom post metadata (aka “Custom Fields”). There are two steps: Define a new custom field for the post (this will be where you enter your URL) Output that custom field in your template. STEP 1 First, you will need to define a new custom field to store … Read more
try this: <h2 class=”featured-title”><a href=”http://siteurl.com/category/<?php echo strtolower(str_replace(” “,””,$arr[$i][“title”])); ?>”><?php echo esc_html($arr[$i][“title”]); ?></a></h2>
When you register your custom post type, set the has_archive argument to the slug you want for the archive page, in this case drinks: $args = array( ‘rewrite’ => array( ‘slug’ => ‘drink’ ), ‘has_archive’ => ‘drinks’, );