Syahir Hakim
KeymasterKuala Lumpur, Malaysia
When not perched on my workspace, I tremendously enjoy hiking in the bushes and climbing mountains. They serve as much-needed refuges from the pretense of cities.
Forum Replies Created
-
Admin
In reply to: Controlling number of posts displayed on a category archive page
May 15, 2013 at 2:10 am #38237Try this:
/**
* Limit the posts per page for specific category archive
*/
function my_archive_posts_per_page( $query ){
if ( $query->is_archive() && $query->is_main_query() ) {
if ( is_category( 'authors' ) ) {
$query->set( 'posts_per_page', 3 );
}
}
}
add_action( 'pre_get_posts', 'my_archive_posts_per_page' );Admin
If it persists in different themes, that might indicate an issue with the plugin. Try asking the plugin’s developer about it?
Admin
This page might be useful to you:
http://wpml.org/documentation/getting-started-guide/media-translation/
Also, if you’re having issues with WPML and WPML-related plugins, it’s better to ask for help from the WPML support forum, as they are in the better position to help you out. Of course, we’re more than willing to work with them to sort out any issues if it’s coming from the theme.
Admin
OK, create a
functions.phpfile in your child theme. Then, add this code into that file:<?php
/**
* Make slider lists recent pages instead of recent posts
*/
function my_slider_post_types( $types ) {
global $graphene_settings;
if ( $graphene_settings['slider_type'] == 'latest_posts' ) {
$types = array( 'page' );
}
return $types;
}
add_filter( 'graphene_slider_post_type', 'my_slider_post_types' );Admin
Admin
In reply to: Bought Graphene Mobile about year ago need to download it again.
May 13, 2013 at 10:48 am #38232Quote:Where do i find the G.MOBILE download since i paid about a year ago?The download link that you received in the email following your purchase is still valid and can still be used. If you have lost that link, you can retrieve it from [url=https://forum.graphene-theme.com/your-account/]your account page[/url].
Quote:Since i paid for GM $19 can I upgrade to Neo for $10?No, but you do get a 50% discount on GM Neo if you have already purchased Graphene Mobile. The discount is applied automatically at checkout, so make sure you log in as the same account you used to purchase Graphene Mobile.
Quote:Does GM or GMN support full width sliders?No.
Quote:And can they be set to advance every so many seconds or manually?What do you mean by “advance”?
Quote:Does GM or GMN support opacity settings so like backgrounds can be seen thru the menu buttons or tabs?This can be achieved using the Custom CSS feature.
Quote:Does Mobile support ipads or ipod touches?It’s up to you – you can set whether or not the mobile theme should be used for iPads. The setting is in the mobile switcher plugin.
Quote:Can Mobile cache all web app files to iPhone or androids or do i have to write code for that.The mobile theme is like any other websites, and whether or not parts of it are cached is determined by the browser you’re using. Most browsers cache the static files, like images, stylesheets, and scripts, out of the box.
Quote:and keep iphones in native mode of display?Can you explain further on this?
Quote:Whatever GM OR GMN does not support do u plan to offer support for these things.If there is enough interest, we might.
Admin
Quote:Where can i find the size of the image header for Graphene mobile ?The height depends on whether or not you have the site description displayed in the header. The width depends on what device and what orientation the device is in.
Quote:Otherwise, is this function available with Graphene Neo?Yes.
Quote:I take this opportunity to ask you what are the differences between graphene mobile and graphene neo?You can see the features comparison here:
https://forum.graphene-theme.com/graphene-mobile-neo/features-comparison/
Admin
Quote:Thanks but then how do I make the slider read recent pages and not post which is what I am trying to achieve?We can guide you on that after you have the child theme set up.
Admin
Man, that navigation menu you have rocks! If you can do a write-up on how to implement it, I’ll share it out with the community.
Admin
You can use the
graphene_before_bottomsidebaraction hook already available.
