“regular” pages not found after changing permalink
“regular” pages not found after changing permalink
“regular” pages not found after changing permalink
This sounds quite a bit like the Advanced Custom Fields flexible content field. Basically it works by letting you setup a number of different templates for how you might want to create/display your page. Then when you are in the editor, you pick which template you want to use. More info here: http://www.advancedcustomfields.com/resources/field-types/flexible-content/
You might try the the_content filter with the conditional tag is_category() to append a string to the post content when viewing the category archives : add_filter( ‘the_content’, ‘custom_the_content’ ); function custom_the_content( $content ){ if( is_category() ): $metastime = get_post_meta( get_the_ID(), ‘user_submit_starttime’, true ); $metaetime = get_post_meta( get_the_ID(), ‘user_submit_endtime’ , true ); $metaloc = get_post_meta( get_the_ID(), … Read more
I figured out that the images needed to be in the directory where the “core” wp folders are, ie. the public_html, or in whatever sub-directory that contains the wp-admin, wp-includes, wp-content, etc. I had been placing them in the theme root and nothing was happening. Moved them to the public_html and they started showing up! … Read more
You need to be specific when defining your CSS styles so that a theme will not overwrite your intended style. When outputting your markup, perhaps you should even consider wrapping your div element within another div element and assuming this is the only markup on the page, you can specify them both with an #ID … Read more
For this to work, you will need to have your search results ordered by the post type. function order_by_pt($where,$qry) { if (is_main_query() && $qry->is_search()) { global $wpdb; $where = $wpdb->posts.’.post_type DESC’; } return $where; } add_action(‘posts_orderby’,’order_by_pt’,1,2); Then a Loop like this one will do what you want, if I understand you. $type_title=””; while (have_posts()) { … Read more
Text widget is only static text widget. You need to place link to current post on the end of the sharing link (and you have to urlencode it), so I don’t think that text widget will help you with your problem. The easiest solution to your problem will be adding these sharing links in your … Read more
Try to add those styles with the CSS class .single or .single-post. Because it’s a child theme you’ll probably need to use !important
Error inserting row into table
post_count property of query object will hold amount of posts queried. Note that this is not often used and it is more common to display such elements by conditional logic (is_singular(), is_archive(), etc) or on template level. PS query_posts() is evil and should not be used