has_archive for default post type
You can change front page and designate another as blog via Reading settings. See Creating a Static Front Page in Codex.
You can change front page and designate another as blog via Reading settings. See Creating a Static Front Page in Codex.
As anything that has to do with stats this is really an analytics task and as such not something that WP does natively. You options are: installing (if not already) some kind of analytics solution and getting data from it add code to that post that will track referers (I won’t really recommend this since … Read more
SEO Smart Links does an amazing job for this. It provided exactly what I wanted. Originally, I used RB Internal Links. It only works through the visual editor, though.
try and change this line: query_posts(‘posts_per_page=1&cat=7’); to: query_posts(‘posts_per_page=1&page_id=17’); or: query_posts(‘posts_per_page=1&pagename=page-slug’); (enter the actual page ID or page slug into the respective space) http://codex.wordpress.org/Class_Reference/WP_Query#Post_.26_Page_Parameters
Answering my own question as noted in the edit: This actually seems to do the trick, not sure if it’s the best way though: add_menu_page(‘Oranges’, ‘Oranges’, ‘edit_posts’, ‘edit.php?post_type=fruits&subtype=oranges’, ”);
Found the following in a plugin file using grep -Ri ‘redirect_canonical’ /path/to/wordpress/plugins: remove_filter(‘template_redirect’, ‘redirect_canonical’); That disables WordPress’ built-in canonical URL redirects. Disabling the component of the plugin that contained that line fixed the problem. Beware the WordPress Mobile Pack’s Mobile Switcher. Hopefully reaching out to the plugin developer will result in a fix that allows … Read more
You’ll probally want to use WP Conditional tags and do something like this: if(is_home()){ //show home menu } else if(is_page(‘mypage’)){ //show category menu for JUST that page } else{ //show the menu for all other pages } What you do inside each conditional statement is up to you. Here are 3 solutions: Use CSS and … Read more
If the problem is easily reproducible (i.e. you can make it happen again and again by following a set of steps), do this: Step 1: Document the steps required to cause the problem. Step 2: Document all of the plugins you have running Step 3: Deactivate all of your plugins! Step 4: Perform the steps … Read more
If you look at your current setup, you can see that your add_image_to_save_post function is fired off when wp_insert_post is performed. wp_insert_post is fired off when a post is inserted into the database, and as you may know, as soon as you click “Add New” in WordPress a database entry is created, thus pulling on … Read more
I would suggest looking at a plugin like images for categories and seeing if you can extend it to allow 2 images per category.