Front page welcome message area
Create a page theme, then call it in index.php: $recent = new WP_Query( ‘page_id=**ID**’ ); while ( $recent->have_posts() ) : $recent->the_post(); ?><h3><?php the_title(); ?></h3><?php the_content(); endwhile;
Create a page theme, then call it in index.php: $recent = new WP_Query( ‘page_id=**ID**’ ); while ( $recent->have_posts() ) : $recent->the_post(); ?><h3><?php the_title(); ?></h3><?php the_content(); endwhile;
maybe you can add onclick event on each option <select> <option onClick=”go_to_url” value=”http://google.com”>Google</option> </select> and you have to make JS function go_to_url making window.location.href = this.value;
Check this out: http://css-tricks.com/snippets/wordpress/paginate-custom-post-types/ It is meant for custom post type, but I think it would work for you too. Edit: The important part about this link is the link was the use of the first lines before the loop: $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query(here goes the query); But … Read more
To use the plugin in the question you linked to: Copy the code into notepad or an equivalent program Save the file using the extension .php (make sure your operating system has file endings turned on so it doesn’t save as filename.php.txt Put the file into a compressed (or zipped) folder. How you do this … Read more
You have a structural problem with your data. Serialized data in the database is terrible if you need to search over pieces of that serialized data. There is no reliable, efficient, and certainly no easy, SQL query to search over serialized data. “serialization” is a PHP mechanism. It isn’t SQL. To the database that is … Read more
Since you’re a beginner I would like to mention that WordPress already has an archive widget. If ever it does not suit your needs, You can browse through the available archive plugins at wordpress.org and choose which one is the best for you.
a colleague fixed it using parse_request. similar to this one: http://willnorris.com/2009/06/wordpress-plugin-pet-peeve-2-direct-calls-to-plugin-files
http://wordpress.org/extend/plugins/advanced-post-privacy/ http://wordpress.org/extend/plugins/show-private/ Either of these would work, depending on how you want to share the posts.
someone there help me and solved the problem. It works. Cool. Thks guys. Details : First – I remove this code from function.php function namespace_add_custom_types( $query ) { if( ( is_tag() || is_category() ) && empty( $query->query_vars[‘suppress_filters’] ) ) { $query->set( ‘post_type’, array( ‘post’, ‘projets’, ‘disques’, ‘notices’, ‘main_menu’, ‘top_menu’ )); return $query; } } add_filter( … Read more
Setting the proper dataType for the request is an important detail not considered in the answer above (this causes jQuery to send a HTTP Accept header with the request – and it will be expecting JSON data in the success callback as well): dataType: ‘json’, success:function(json){ var content=””; jQuery.each(json, function(i, v){ content += ‘<li>’ + … Read more