afrila gunadi
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: change order list custom post type by guestany suggestion for me?
Forum: Fixing WordPress
In reply to: Pagination with custom post type listing from search resultForum: Fixing WordPress
In reply to: Pagination with custom post type listing from search resultyeah that’s work to,
so, in this case. There are two ways, first post_type in the array,
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'post_type'=> array( 'pelajaran' ), 's' => $s, 'paged' => $paged, 'posts_per_page' => 1 ); query_posts($args);
or the second add function mam_pre_get_posts() in the file functions.php and put codex pre_get_posts() in file search.php
function mam_pre_get_posts( $query ) { // Force searches to use Custom Post Type and set number of posts_per_page if ( is_search() ) { $query->set('post_type', 'pelajaran'); $query->set('posts_per_page', 1); } return; } add_action( 'pre_get_posts', 'mam_pre_get_posts', 1 );
so, thank you very much for your help on my case.. ??
*regardsForum: Fixing WordPress
In reply to: Pagination with custom post type listing from search resultit’s okay, thank you for trying.
but I tried your suggestion, post type in the array. seems to work,
thanks ??be like this :
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'post_type'=> array( 'pelajaran' ), 's' => $s, 'paged' => $paged, 'posts_per_page' => 1 ); query_posts($args);
Forum: Fixing WordPress
In reply to: Pagination with custom post type listing from search resultthanks for reply,
oh ya, this my code in file searchform.php
<form class="form-wrapper cf" role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> <input type="text" placeholder="Cari Pelajaran..." value="<?=get_search_query() ?>" name="s" required> <button type="submit" id="searchsubmit">Search</button> </form>
and this my file search.php
I too beginner in wordpress codex, I hope this issue can be resolved.
thanks in advanceForum: Fixing WordPress
In reply to: How to add field upload image for user profilematt : it’s oke ??
kjpro27 : oke, i’ll figure it out.
Forum: Fixing WordPress
In reply to: How to add field upload image for user profilethanks for reply,
but, if it can be if without plugins.?
and you’ve got some kind of tutorial?Forum: Fixing WordPress
In reply to: problem : Trying to get property of non-object in ……thx for reply, but i’m not ask yet. i’ll do it.
theme course..
Forum: Fixing WordPress
In reply to: error, table wpdb add automatic when reload pagehallo…
Forum: Fixing WordPress
In reply to: how to enter data from form to table databaseand i get error,
WordPress database error Table ‘ecourse.wp_member’ doesn’t exist for query INSERT INTOwp_member
(first_name
,last_name
,id_twitter
,id_facebook
,id_instagram
,id_gplus
,bio
) VALUES (‘john’,’kenedy’,”,”,”,”,’tes’) made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/ecourse/page-template/profile-edit.php’)any suggestion for me?
Forum: Fixing WordPress
In reply to: How to create sign in menu in theme coursesthx for your reply, i’ll figure it out.
I am a bit confused, whether during the registration. I must to browse manually as an administrator in the user menu dashboard? thanks
Forum: Fixing WordPress
In reply to: How to create sign in menu in theme courseshallo..
Forum: Fixing WordPress
In reply to: how to be responsive menu with wp_nav_menuokay, I already understand. thank you for all the answers ??
Forum: Fixing WordPress
In reply to: how to be responsive menu with wp_nav_menuokay i’ll try it.
what do you think. the problem duplicated menu when responsive, it’s due override css ( without make child theme) ? or Is there something wrong with the codex wp_nav_menu in header.php ?
Forum: Fixing WordPress
In reply to: how to be responsive menu with wp_nav_menurespectyoda : mmmm.. is there another way other than making child themes? ??
phusipr01 :
html theme made ??someone, for the version of wordpress, which made ??me.
thank you for you advice ??but, I must to deal with code.