RSS Feed Custom Title? (code placing) [duplicate]
My best guess would be that it needs to be added in the functions.php file in your theme
My best guess would be that it needs to be added in the functions.php file in your theme
To get a specific post in WordPress, you can use the get_post() function and get_the_category() to get the categories associated with it. You can then use the code found in this answer to dump the SQL queries used. <?php $post_ID = 7; $the_post = get_post( $post_ID ); $the_category = get_the_category( $post_ID );
Check for is_front_page() and if you want to catch the first page only inspect get_query_var( ‘paged’ ) too: if ( is_front_page() and 2 > get_query_var( ‘paged’ ) ) { // we are on the first page of the front page }
In your Twenty Eleven child theme (don’t edit the main theme!) create a new header.php file, copy the content from the parent theme, and replace this part: <body <?php body_class(); ?>> <div id=”page” class=”hfeed”> … with something like this: <body <?php body_class(); ?>> <div style=”background:#345;color:#eee;padding:10px 20px;margin:0 -2em”>Hello</div> <div id=”page” class=”hfeed”> But move the CSS into … Read more
Create a custom post type named userinfo. On ‘user_register’ call wp_insert_post() in your filter, and create a new post for the user. Add the user ID as post meta field. When the new page is called on the front-end, display the user data.
Your format looks a bit off to me. I’d try it more like this: <?php $fields = array( ‘author’ => ‘<p><label for=”author”><span class=”req”>* </span>’ . __( ‘Name’ ) . ‘</label><input id=”author” name=”author” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author’] ) . ‘” size=”30″‘ . $aria_req . ‘ /></p>’, ’email’ => ‘<p><label for=”email”><span class=”req”>* </span>’ . __( ‘Email’ … Read more
I was able to solve this by ordering my taxonomy values based on this post: Custom taxonomy, get_the_terms, listing in order of parent > child
Turns out the ‘no plugins activated’ was not enough. Once I did a completely fresh install (without W3 Total Cache plugin), the issue disappeared.
The is_tax() function checks if a custom taxonomy archive page is being displayed. So it will only work in template files such as taxonomy-product_cat.php – unless you create new templates for specific categories in the product_cat taxonomy. For example, if you have a product category called “Toasters” and the slug is “toasters” then the template … Read more
You can also parse the feed with core functions and insert new post in the other install. You can write or buy a plugin for doing this. The important functions for this scenario is ‘fetch_feed’ and ‘wp_insert_post’. It is also useful, if you change the default cache, if you have often new posts, more as … Read more