link a custom page into menu
Give the file a template header, then create a page under Pages in admin, and assign that template to the page. You can then add that page you created to your menu.
Give the file a template header, then create a page under Pages in admin, and assign that template to the page. You can then add that page you created to your menu.
Try using the jQuery Cookie plugin You can set a cookie to start with that could be called InfoSubmitted with value of ‘No’ and when they submit their info it changes to ‘Yes’ To set the cookie first make sure jQuery and the Cookie plugin are installed and then use this: jQuery.cookie(‘InfoSubmitted’, ‘No’); Once the … Read more
What i found was the easiest way to solve this problem – and what i eventually ended up doing – was to build a custom pagination using querystrings.
Try making the form action the url of the second page, so if your second page is at www.example.com/page-two-of-form/: <form action=”/page-two-of-form/”>
As it seems, it’s an easier way, using get_template_part and some php magic. What you do is get the page name from post_metadata filter the filename without the extension and add it to get_template_part. Of course all your data must conform a predefined variable (or just pass the id to the template) because you have … Read more
you can put this code in your functions add_action( ‘init’, ‘register_my_menus’ ); function register_my_menus() { register_nav_menus( array( ‘menu-1’ => __( ‘Head’ ) ) ); } and this code, in the place you want your second menu <?php wp_nav_menu( array( ‘theme_location’ => ‘menu-1’ ) ); ?> and than, you can control your new menu, through the … Read more
So there are a few things you’ll want to take a look at… And let me clarify the behavior you’re seeing too… First, are you saying that when you actually make code changes to the wpsc-default.css file and save them, when you inspect the code after you refresh the page, your changes are not there? … Read more
You can add galleries directly to a template by calling do_shortcode() to run the gallery shortcode. <?php echo do_shortcode(‘[nggallery id=”1″ template=”example”]’); ?> Edit: sorry, writing decaffeinated so short attention span 🙂 Add some custom fields to your product pages to let your client pick which gallery goes on that product. If you like, just use … Read more
paged is correct unless you’re using pretty permalinks, however, if you’re just trying to alter posts per page for categories, you should be using the pre_get_posts action, there’s no reason to use query_posts in the template: function wpa85791_category_posts_per_page( $query ) { if ( $query->is_category() && $query->is_main_query() ) $query->set( ‘posts_per_page’, 2 ); } add_action( ‘pre_get_posts’, ‘wpa85791_category_posts_per_page’ … Read more
The script never hits a 404 so it continues to load. If I am looking at this correctly it won’t ever hit a 404, and it shouldn’t ever hit a 404. You are loading a page template, the finding and loading of which is going to be done by the main query. That page is … Read more