Problem in using Customizer

Hey Only Change the code like this function cult_customizer_register( $wp_customize ) { $wp_customize->add_section( ‘cult_topic_thumb’ , array( ‘title’ => __( ‘Topic of the Week’ ), ‘priority’ => 36, ‘description’ => ‘Allows you to upload an image for your topic of the week section.’, ) ); $wp_customize->add_setting( ‘display_topic_thumb’ ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, ‘display_topic_thumb’, array( ‘label’ => … Read more

How do I place a function in a standalone page?

If you’re just going to output your own data, there’s no reason to wait for the main query to run. Hook parse_request and check if your page was requested and run your code there. function wpd_maybe_output_feed( $request ){ if( isset( $request->query_vars[‘pagename’] ) && ‘gmailrss’ == $request->query_vars[‘pagename’] ){ header(‘Content-Type:text/xml; charset=UTF-8’); echo checkGmail(“gmail”, “password”); die; } return … Read more

Nav-Menu not showing up

To see the menu, you need to set it up in the wordpress admin side. Go to Appearance -> Menus You should see a “Manage Locations” tab. Select it. You should see your “Main Menu” location. Choose the menu that you created there. Select Save Changes. Since you used “theme-location” to set up drawing it, … Read more

Only load certain artists on this page

if you want to show only 2, put it as a value, like so: ‘posts_per_page’ => 2 For the newest posts, you need to change the sort using the order and orderby params: ‘orderby’ => ‘date’, ‘order’ => ‘ASC’ Details about orderby params here: http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters Also, you should avoid the query_posts use. Except if you … Read more

How to Display a List of Child Pages For a Parent Page in WordPress

you can use post_status. post_status A comma-separated list of post status types that should be included. For example, ‘publish,private’. possible values are: (publish|inherit|pending|private|future|draft|trash) or you can also play with: include Only include certain Pages in the list generated by wp_list_pages. This parameter takes a comma-separated list of Page IDs. more about it here.. http://codex.wordpress.org/Function_Reference/wp_list_pages