WordPress: List child pages using a shortcode

========= QUESTION --------- How do I list the child pages on a page?   ========= ANSWER --------- Place the code in the EXAMPLES section in your theme's Functions.php file, and then call it using the shortcode [children]   ========= EXAMPLES --------- function child_pages_shortcode() {   global $post;   return '<ul>'.wp_list_pages('echo=0&depth=0&title_li=&child_of='.$post->ID).'</ul>';}add_shortcode('children', 'child_pages_shortcode');   ========= APPLIES TO / KEY [...]

By |2017-12-01T23:47:40+00:00July 9th, 2011|Documentation, Internet/Web, WordPress|Comments Off on WordPress: List child pages using a shortcode

WordPress Shopping Cart Options

========= QUESTION ---------   ========= ANSWER ---------   ========= EXAMPLES --------- http://www.zingiri.com   ========= APPLIES TO / KEY WORDS --------- WordPress Shopping Cart PayPal   ========= REF ---------   ---http://www.anysitesupport.com/wordpress-shopping-cart-options http://anySiteHosting.com

By |2011-06-01T18:22:59+00:00June 1st, 2011|Documentation, Internet/Web, WordPress|Comments Off on WordPress Shopping Cart Options

WordPress: How to add a More link

========= QUESTION --------- How do I add a More or Read More link to my content? How do I split content using the More tag?   ========= ANSWER --------- Switch to HTML view, scroll to the section where you want to split the content and enter the tag shown in the EXAMPLES section of this [...]

By |2011-05-30T07:32:06+00:00May 30th, 2011|Documentation, Internet/Web, WordPress|Comments Off on WordPress: How to add a More link

How do I add a WordPress menu to the content of my page?

========= QUESTION ---------How do I put a WordPress menu into the content of a WordPress page? How do I call a navigation menu using a short code? How do I add a navigation or site map to all sub pages on my page?   ========= ANSWER ---------First setup a menu in WordPress under Appearance, Menus [...]

By |2017-12-01T23:47:49+00:00May 4th, 2011|Documentation, Internet/Web, WordPress|Comments Off on How do I add a WordPress menu to the content of my page?

WordPress: How to add default content to your posts

========= QUESTION ---------I am constantly inputting the same boiler plate text and other content into my WordPress posts, is there a way to have a template of sorts, so you can always have the same text pre-populated in your WordPress Post? ========= ANSWER ---------Yes, there is a great plugin for just that need called 'Default Post [...]

By |2011-04-25T14:45:23+00:00April 25th, 2011|anySiteSolutions.com, Documentation, Internet/Web, Web Design, WordPress|Comments Off on WordPress: How to add default content to your posts

WordPress: Enabling Line Breaks

========= REF: http://rubayathasan.com/wordpress/plugin/enabling-line-break-in-wordpress/  http://wordpress.org/extend/plugins/tinymce-advanced/ ========= QUESTION: --------- How do you get WordPress to keep your custom line fomatting in post or page content? Why do all of my extra line spacings disappear after publishing in WordPress? Why when I export content from WordPress does my content all run together without line breaks? ========= ANSWER: --------- WordPress's [...]

By |2011-04-20T14:09:48+00:00April 20th, 2011|Documentation, Internet/Web, WordPress|Comments Off on WordPress: Enabling Line Breaks

WordPress: Permalinks, Clean URLs and .htaccess

=========QUESTION---------We are trying to setup Permalinks and Clean URLs for our WordPress site, and need to know how to setup .htaccess on our Windows Hosting account. =========ANSWER---------From the WordPress dashboard, navigate to Settings, PermalinksUnder Common Settings, set Custom Structure to:/%postname%/ Then add a .htaccess file to the root of your web site with the following [...]

By |2011-04-20T12:16:40+00:00April 20th, 2011|.htaccess, anySiteSolutions.com, Documentation, Internet/Web, Web Design, Windows Hosting, WordPress|Comments Off on WordPress: Permalinks, Clean URLs and .htaccess

WordPress: Query posts via SQL

=========EXAMPLES:---------SELECT Last(wp_terms.name) AS LastOfname, wp_posts.post_title, wp_posts.post_content, wp_term_taxonomy.taxonomy, wp_posts.post_type, wp_posts.post_statusFROM ((wp_posts LEFT JOIN wp_term_relationships ON wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_term_taxonomy ON wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id) LEFT JOIN wp_terms ON wp_term_taxonomy.term_id = wp_terms.term_idGROUP BY wp_posts.post_title, wp_posts.post_content, wp_term_taxonomy.taxonomy, wp_posts.post_type, wp_posts.post_statusHAVING (((wp_term_taxonomy.taxonomy)="category") AND ((wp_posts.post_type)="post") AND ((wp_posts.post_status)="publish")); ---------$querystr = "SELECT * FROM $wpdb->posts LEFT JOIN $wpdb->term_relationships ON($wpdb->posts.ID = $wpdb->term_relationships.object_id) LEFT [...]

By |2017-12-01T23:47:50+00:00April 15th, 2011|Documentation, Internet/Web, WordPress|Comments Off on WordPress: Query posts via SQL
Go to Top