Tag Info

Hot answers tagged

5

There is even an example in the WordPress codex here for this: http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts function exclude_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '-3,-8' ); } } add_action( 'pre_get_posts', 'exclude_category' ); Just modify ...


4

SEO is not a thing that can be stockpiled and then expended. There are no SEO points. Absolutely different WordPress themes can effect how your site is indexed. Some themes are full of crap code. Some themes are full of junky outgoing links. Some themes look so ugly that user engagement will plummet. And so on. What theme do you have now, and what theme ...


4

Untested, but try: <?php echo get_the_title( get_option( 'page_for_posts' ) ); ?> But it's somewhat hackish. Really, the page_on_front and page_for_posts are intended to be nothing more than placeholders for the site front page and blog posts index page.


3

Create a shortcode to embed the content. This will always be synchronized. Sample code from an older project. Just updated. :) GitHub: https://gist.github.com/3380118 ยท This post in German (auf Deutsch) on my blog. <?php # -*- coding: utf-8 -*- /** * Plugin Name: T5 Embed Post Shortcode * Description: Embed any page, post or custom post type with ...


3

There are many options. Subscribe2 is very popular, although I've never been a fan. http://subscribe2.wordpress.com/ MailChimp and FeedBurner both offer RSS to Email delivery which can be used for this as well. JetPack includes a subscribe to new posts function as well: http://jetpack.me/2011/11/29/how-to-use-email-subscriptions-in-jetpack-1-2/


3

First, you need to familiarize yourself with the WordPress Template Hierarchy, so that you ensure that you are modifying the appropriate template file: Home: Blog Posts Index page; template file: home.php Front Page: Site Front Page; template file: front-page.php I am assuming that you want to display a static front page, and to display your blog posts ...


3

You need to use the_content instead of the_excerpt when you display your 'single' post. If you would post your code, you might get a more detailed answer.


3

WordPress now has a post format called status which is meant to be used for short status updates. You can see a lot of information about how to use these standard post formats in the Codex page on Post Formats


3

Actually your site is indexed all 176 pages. It would probably help your search results if you changed your permalink structure to something other than default. You should also get a yourself a Google Webmaster Tools account so you can see how your site gets indexed and crawled.


3

Posts are a broader category than they initially appear to be. The post is any content, even if you're using WP as a CMS. While it might seem like a post is a blog post, really it's anything you post on the site. Disabling it will kill all content. Better to turn off the various bloggy components, such as comments, and then edit the template files to remove ...


2

Set your blog as Blog category and your portfolio as Portfolio category. You might be also interested in Custom Post types (which I think is the right way to do it): Run your Blog as a usual via Posts and set the Portfolio as Custom post type with its own categories, tags or what ever taxonomy you need. Read more here: http://codex.wordpress.org/Post_Types ...


2

You've got 2 separate issues here Word -> Wordpress: As @One Trick Pony said, the easiest way to sort this will be using the Paste from Word button on the post editing toolbar. Images will probably need to be inserted manually MathType -> WordPress: You'll need to install the Latex for WordPress plugin and use MathType to export the equations out in a ...


2

Is WordPress configured to use www or without www? Your server seems to be listening only for the www version and tries to redirect non-www requests to the www version. Considering that you provided a link to the non-www version of the domain above, my guess is that WordPress is trying to hook on to http://compassionpit.com, but your server redirects those ...


2

Not sure if you can use a complete different template but you can use different template parts using the global $page variable. Example: global $page; if ( $page == 2 ) { get_template_part( 'page', 'two' ); } else { get_template_part( 'page', 'default'); } This would load the template file page-two.php or page-default.php depending on ...


2

You need to do three things: firstly, your markup is incorrect, take the container_24 div the main content sits in and make it grid_17 so it doesn't take up the entire width of the container div. The sidebar needs to go in the container div along with the content, else it will be pushed downwards by the container div Because of the above issues, you've ...


2

there's a meta tag in your body, causing refresh: <meta http-equiv="REFRESH" content="0;url=error.htm">


2

Create an empty page with the slug blog. Go to Settings/Reading and set that page as Posts page. Go to Settings/Permalinks and set the URL pattern to /blog/%postname%/. That should do it.


2

A very simple solution: Add a second editor field to the post editor, and use the meta field content in a filter on the_content. add_filter( 'the_content', 'wpse_77811_extra_content' ); function wpse_77811_extra_content( $content ) { return $content . get_post_meta($post->ID, '_t5_extra_box', TRUE ); }


2

Looks like you have 2 WordPress installations. One for the main site, other for the Blog. http://parlourdc.com/wp-content/plugins/akismet/readme.txt http://parlourdc.com/blog/wp-content/plugins/akismet/readme.txt If that's not on purpose, you have a blog folder in your site root that should be renamed/deleted as it contains a blank WordPress. If you made ...


2

the main problem is that you should never alter core files ... the next time WordPress does an update it might overwrite the file you just changed. you should not have needed to use a multisite for your scenario - you can have a portfolio and blog in the same setup using plugins or a great theme (even without using something called custom post types). ...


2

By default, "Category Archives" (which is what you're describing) are at the URL example.com/category/{category}. I would recommend that you do the following: Delete your blog and portfolio pages. Don't just trash them, but delete them permanently from your trash (this will free up the permalinks you mention in your post). Create the two categories, Blog ...


2

Weird Problem!, try the following: Make sure that the targeted categories are not empty. If you are using custom post type,include it in the query 'post_type'=>'advertisement' for example. If the targeted categories are special taxonomies,make sure to include it in the query : 'term'=>'cars' along with child 'cars'=>'toyota'. in this example and ...


2

I have to ask the obvious here; have you changed your privacy settings to allow the blog to be accessible by search engines. Blogs in general and WordPress blogs are typically well crawled by Google and the other search engines. If you have already made the blog visible, you may want to create a sitemap and submit it to the search engines. You can use the ...


2

On your wordpress menu use another class instead of "blog" for the blog item, cause your theme has a function that add a similar class to the body so it's creating a conflict in there, try erasing your blog class for you to notice. Also the app.css if for ur custom css :), no need to use both.


2

Have a look at the template hierarchy page. Custom post types will use single-{post_type}.php template if it exists.


2

If it doesn't work then there must be some problem or overwrite in your custom theme, add this code in your index.php or where ever you want to show the custom number of posts, query_posts( $query_string . '&posts_per_page=1' ); change '1' to any number you want


2

Looks like they're trying to content farm for SEO purposes without getting hit by duplicate content penalties. The first thing I would do would be to get in touch with their hosting, since the domain is registered to someone in Indonesia and calling would probably not get you the results you're looking for. Talk to their host, explain what's up, and see if ...


2

Not sure what $gogo_blog_text_no_posts is but you should be able to change this: $wp_query->query('posts_per_page='.$gogo_blog_text_no_posts.'&paged='.$paged); to $wp_query->query('posts_per_page='.$gogo_blog_text_no_posts.'&paged='.$paged.'&cat=1'); See WP_Query Codex



Only top voted, non community-wiki answers of a minimum length are eligible