prabhdeep123
Forum Replies Created
-
My ticket number is (#7376)
Are you want to know my ticket number ?
Alex I have testing to Change “WPGLobus::Config()” to “WPGlobus::Config()” but still not working
Hello Alex,
I have submit my ticket<?php $secondLevelmanagement = $wpdb->get_results(“SELECT * FROM $table WHERE Level=2 AND parent_id=$top_level_id”); ?>
<?php if (!empty($secondLevelmanagement)) { ?>
<div class=”organisation”>
<?php
$group=0;
$chart=array(‘individual’=>””,’group’=>array());
$chart[‘individual’]=”;
foreach ( $secondLevelmanagement as $seconduser ) : setup_postdata( $seconduser );
$id = $seconduser->team_post_id;
$thirdLevelmanagement = $wpdb->get_results(“SELECT * FROM $table WHERE Level=3 AND parent_id=$id”);
if(empty($thirdLevelmanagement))
{
$chart[‘individual’] .= ‘<div class=”chart Singlelead”>
<div class=”chartImage”>’.get_the_post_thumbnail($id, “thumbnail”).'</div>
<div class=”chartDescription”>
<h4>’.get_the_title($id).'</h4>’;
$raw_string = get_post_meta( $id, “team-member-designation”, true );
$chart[‘individual’] .= ‘<p>’.WPGlobus_Core::text_filter( $raw_string, WPGLobus::Config()->language ).'</p>
</div>
</div>’;This is the code i am using
🙁 🙁 🙁 🙁
Still not working. And one more thing i am getting content using plugin shortcode.
Is there any way to fix it with translate options of wpglobus?
It is still not working. 🙁
Actually i have copied 2016 theme, and created my own theme with structure of 2016.
Then i created custom posts using “register_post_type”.
Now if i save custom meta box data it is giving me result with language attributes like {:en}President Director {:}{:id}presi{:}.
I have created custom plugin to get that content and i am getting content using get_post_meta(). I have used apply_filter(‘team’,getmetadata(get_the_ID, ‘meta-name’,true)); as well. But still it is giving the same result with language code.
I have create custom post using below code.
function my_custom_post_slider() {
$labels = array(
‘name’ => _x( ‘Team’, ‘post type general name’ ),
‘singular_name’ => _x( ‘Team Member’, ‘post type singular name’ ),
‘add_new’ => _x( ‘Add New’, ‘book’ ),
‘add_new_item’ => __( ‘Add New Member’ ),
‘edit_item’ => __( ‘Edit Member Info’ ),
‘new_item’ => __( ‘New Member’ ),
‘all_items’ => __( ‘All Members’ ),
‘view_item’ => __( ‘View Member info’ ),
‘search_items’ => __( ‘Search Member’ ),
‘not_found’ => __( ‘No Member found’ ),
‘not_found_in_trash’ => __( ‘No Member found in the Trash’ ),
‘parent_item_colon’ => ”,
‘menu_name’ => ‘Team’,
‘rewrite’ => array(‘slug’ => ‘team’),
);
$args = array(
‘labels’ => $labels,
‘menu_icon’ => ‘dashicons-groups’,
‘description’ => ‘Holds Team Member Posts’,
‘public’ => true,
‘menu_position’ => 5,
‘hierarchical’ => true,
‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’, ‘author’, ‘trackbacks’, ‘custom-fields’, ‘revisions’, ‘page-attributes’),
‘has_archive’ => true,
‘taxonomies’ => array(‘category’, ‘tag’),
);
register_post_type( ‘team’, $args );
}
add_action( ‘init’, ‘my_custom_post_slider’ );As we create to customize function.php file
Alex I doesn’t use any plugin to create custom post.
I have created custom post by adding some function in function.php fileHello Alex Gor,
I have not used any custom field plugin. I have created custom post which is called(Team). Here I am using custom field which is below the text editor in admin dashboard.I have used your “WPGlobus” plugin.But when I update my custom post my data is lost in fields.
Forum: Reviews
In reply to: [WPGlobus] Excellent plugin for translation with excellent SupportHello ,
Can anyone help me to solve the issue which i have found with this plugin.I have create the custom post.but when I update my Custom post the data contains in meta fields of this plugins is not stored.Why this happen?This issue is only comes with the custom post. WordPress default post doesn’t give this type issue.In default post it automatically stored when i update post.