WordPress Mobile Pack Custom Page Template - php

Hoping someone can help.
I've inherited a WP based website which has WPMP already installed & activated & working on it (I can see it work on many pages).
I've had to create a custom template & a few pages that use this template. Unfortunately, when I switch to mobile mode (or check out the new pages on my iPhone), no posts show.
The custom template has to query for posts multiple times to display different groupings of posts in different places. I have a feeling these dynamic queries are removing the ability for WPMP to see any posts at all.
So the only thing I can think of doing is somehow "providing" WPMP the list of posts to see.
How do I do this?
Please help...
O8

I think that in your situation you best way will be to:
1. Upgrade wordpress to the lastest version.
2. Install http://wordpress.org/extend/plugins/wptouch/ - that will do all the work for you on mobile.

if you are having trouble fetch posts in mobile pack, then in custom temple, please run wp_query or SQL command to select all posts and declared a
Global $posts
and once $posts is populated then the regular commands which are used in the loop can be executed to show posts.

Are you using wp_reset_query after each loop?
http://codex.wordpress.org/Function_Reference/wp_reset_query
Use Firebug with Firefox, or Chrome's or Safari's or IE8's developer tools to see what's loading on your site and check for javascript errors and css conflicts.

Related

WordPress: Too many taxonomies slow down the site

I have a WordPress site with 30,000+ terms for Australian cities/states. Wordpress loads fine with fewer terms but 30,000 terms make it load forever.
I've disabled all the plugins and using the WP-2015 template. Is there a way to add such a huge number of custom terms and make the site work normally?
I have the exact same issue. It turns out the problem is the WordPress is very slow if you have many terms and the taxonomy is set to be hierarchical. Without this option the admin and frontend pages load fine.
It's an old issue from way back which I don't think WordPress can fix with their current database structure.
As a partial fix I improvise by making the taxonomy non hierarchical and set the parent/child relations as taxonomy meta. It only works in the front end where you have full control over the queries.
Is site slow at all places or just a set of pages? If so, which pages?
We have way more terms than you do and we have no problems. I assume that at certain places select queries take too long.
You can install plugin called Query Monitor which can show you what takes long, what triggers it and lots of other useful information which can help you locate and fix the problem
It's old question. The issue is (as #razvan said) for hierarchical because (mainly for administration pages), WordPress create a <select> tag for the selection of the taxonomy. But using non hierarchic taxonomies (like tags) works perfectly.

edit magento navigation without coding

I just recently started working with a Magento site, and so far I'm really not liking it. I need to remove a couple links from the main navigation, but I can't seem to find the option for it. I've googled it numerous times, and all I see are examples for coding the navigation. My question is, can you edit the site navigation like you can with say wordpress? Seeing how it's a cms I'd imagine the user should be able to make changes to the navigation using some type of interface, and without having to pull the files from the server and edit them.
Also just out of curiosity, for anyone experienced with Magento would you say it's a good choice for a cms? I've heard of it before, but haven't seen many sites that use it.
No!, so you have three options here.
Learn how to extend the navigation with the 100's of tutorials out there, it is really not that hard, assuming you have a theme you just have to edit app/design/frontend/[theme]/default/template/page/html/topmenu.phtml
Get an extension to do it for you.
Hire a developer to do it for you, we create a static block with installer for the html which make it slightly more user friendly to update in the future.
Stackoverflow is a bad place to ask questions like this, it is aimed at programmers and doing such a procedure is rudimentary stuff, I really hope you are a client trying to be cheap rather than someone who claims they can run this site.
Edit: The cms features are ok but you need to be able to code to set them all up so the end user can make the changes with WYSIWYG.
If you don't want to code for navigation then you can do below things
1) Create category and then Display Settings=>Display Mode=>static block only and Display Settings=>CMS Block=>static block name. In static block u can include in page url or custom page
2)You need to hire developer
If you're using Magento and have an integrated WordPress blog, it's possible to design a completely custom menu in the WordPress Admin using the menu builder. You have complete control over what menu items you want and the hierarchy of each item.
To get this to work, you need to integrate your WordPress blog using WordPress Integration in full integration mode. Your Magento template also has to be using the default Topmenu block.

Parameter for more than 10 posts in WordPress RSS

I need to generate an RSS feed for posts in WordPress that contains more than the usual 10-or-so items. I understand that somewhere I need to do something such as query_posts( 'posts_per_page=-1' );, but I have absolutely no idea where. (I am new to WordPress development.)
I've looked all up and down my includes/feed-rss2.php, and while I see a lot of stuff that generates my feed, nowhere do I see something that actually queries for a list of posts. In fact, there is no reference to "query" anywhere in the file!
Can you direct me to the appropriate place? Better yet, if there is some parameter I can stick in the URL when requesting the feed in the first place, that would be great.
Thanks for any direction you can give.
The simplest way to change the number of posts in your feed is to utilize built in options.
Go to the admin Dashboard, then to Settings, then to Reading.
You will be faced with various options, the most important being:
Syndication feeds show the most recent 10 items
That will allow you to specify the number of posts your feed will contain.
Simple, easy and all via the admin panel!
Source: Settings -> Reading via the Wordpress Codex

Wordpress as CMS, Without Using It As Website Platform

What is the best method, if there is one, of using Wordpress as a CMS for users to input data while not actually building the website on the Wordpress platform?
One possible solution I've found is using a PHP class called "WPGet" (http://peter.upfold.org.uk/projects/wpget) which fetches directly from the database.
You could use Wordpress' API calls, but depending where your "custom built application" sits, it might require including numerous files in your code (not very fun/efficient)
I have a site that requires constant updating. It's a golf club site: results, news etc all updated via wordpress by the club, or individuals with interest (juniors, ladies, seniors each have a mini-site) - and not always by me - so i have a front end, the standard site with static .php pages, which i then feed data to, by calling on posts marked in categories from wordpress, relevent to the site's page. The coding is easy and it's a quick and simple way of using wordpress as a cms, but it does strip away most of the Wordprss functionality, eg. comments, But I even use it for galleries with lightbox.
Like i say - it's nothing major, but sounds similar to what you're asking...?

Wordpress Digg-Like Voting System Plugin

I just found out about BuddyPress (a collection of plugins that convert a WordPress MU install into a social network) and now I was wondering if there are any Digg-like voting plugins for WordPress. This would eventually integrate into a BuddyPress website, where the site members would submit, vote and comment on stories (much like Digg).
I have a feeling I will end up having to build this from scratch, but since the site will be built on WordPress, I was wondering if there were any plugins already available that add this functionality. So far I have come up empty in my search. I did find a Wordpress blog that had this functionality WpVote. It even creates thumbnails of the story webpage automatically (I'm assuming) using websnapr. I browsed through the page source and didn't seem to find any hints of a WP plugin that they are using.
I've successfully used TDO Mini Forms for user submissions combined with Vote it up to build a digg-style site.
You can create a "top votes" page using the MostVotedAllTime_Widget() function from Vote it up, or use the SortVotes() or GetVoteArray() functions to build and style your own top votes list in a customised page template.
You'll find the full list of available functions in /vote-it-up/votingfunctions.php
BuddyPress Links is what you're looking for:
http://wordpress.org/extend/plugins/buddypress-links/
Or you can try:
Pligg Voting CMS
when i was start to build my own social bookmarking, i using voteitup plugin but if you want to build your own vote button you can visit bavotasan.com and search post "simple-voting for-wordpress-with-php-and-jquery"
take a look at my own social bookmarking using it : http://nestdev.com
http://prothemedesign.com/themes/nominate-for-wordpress/
is a premium theme I've come across but never used. It's a WP version of Digg and I believe pretty good.
Personally I use Drigg which is a Drupal version of Digg. See it in action here: http://weblinks.myfriendshotel.com Unfortunately, however, WebSnapr have just changed their code so the site is no longer showing thumbanails but hopefully as a 'non-programmer' I'll find a solution soon...
Is this what you're after?
http://www.tevine.com/projects/voteitup/
I think [wpvote][1] use drigg module for drupal. I've just found buddypress plugin which has similiar function like digg social bookmarking. more detail
Not sure if this is still relevant or not but the theme used for WPVote.com has now been released on Pro Theme Design - http://prothemedesign.com/themes/nominate-for-wordpress/

Categories