353 comments found

Is there any way to move my all post to custom post i.e. “news manager” Please help me through this. Thanks

WebLionMedia

It is possible, to execute a sql query:

update wp_posts set post_type = 'news' where post_type = 'post'

Hello, your theme is working for pageid permalinks only but when i change permalinks through settings to postname theme doesn’t work none of its url work show me 404 error. http://i.imgur.com/7nqrsH6.png Please tell me what the problem.My site is down Thanks

WebLionMedia

Edit the “functions.php” file from the main theme folder and delete this code:

function custom_post_author_archive( &$query ) {
    if ( $query->is_author )
        $query->set( 'post_type', 'news' );
    remove_action( 'pre_get_posts', 'custom_post_author_archive' ); // run once!
}
add_action( 'pre_get_posts', 'custom_post_author_archive' );
Default-user

this code is for showing author archive i guess but my question is different i need to make my urls postname wise while doing it from setting it is showing me 404 error .Theme url are only working for default permalinks. Please provide me solution Thanks

WebLionMedia

Hi. Please don’t send comments from the account where you didn’t made the payment. Thank you for understanding.

Hi,

On chrome browser my main news not seen properly while in Mozilla browser it’s working perfectly fine.

Please check my website link: http://www.businessworldit.com

Kindly refer my home page’s Main News Section in both browsers.

Waiting for your reply. Thanks

Default-user

I am waiting for your reply man! It’s very urgent for me.

WebLionMedia

Hi,

I have checked in Mozilla and Chrome browsers and I don’t see difference. Please check my screenshots:

Mozilla – http://clip2net.com/s/iSz4m9

Chrome – http://clip2net.com/s/iSz6nJ

Best regards, Weblionmedia

The twitter widget on my page isn’t fully displaying itself. Please check it out at

www.jobclincher.com

and let me know how to fix it.

Default-user

Dear WLM, this is extremely important, please help.

Default-user

nevermind, found documentation, thank you and great work!

WebLionMedia

I’m glad to see you figured out. Sorry for delay.

Hello love the theme.

Something strange happened recently.

1. Homepage Slider does not work 2. Media Library is blank.

My attempts to fix: 1. I have updated wordpress to 4.0 2. disabled plugins 3. disabled theme

Nothing seems to work? Any clue?

WebLionMedia

Hello,

I have tested with latest stable version 4.0 not 4.0.2. And for me works without problems. Please send your site URL and I will check.

Best regards, Weblionmedia

ManagementServices

www.canterburyshowplace.com

WebLionMedia

Hello,

The slider is working now. Please confirm it. Thank you.

Weblionmedia

Hello,

1 question: What is the theme installation and after importing a file “content.xml” messages are not displayed in the “All News”?

2 question: What is the import file “content.xml” wordpress freezes?

3 question: What does not display the entire icon twitter? My website is: www.expo.rzeszow.pl

WebLionMedia

Hello,

1) Create new page and set the page template name “News All” for this page.

2) I don’t have the freezes issue in my practice. Maybe the internet connection causes this. You can install a fresh WP site with fresh database and send credentials to my email via our Profile on ThemeForest http://themeforest.net/user/WebLionMedia . I did this already for more users and works without problems.

3) What browser do you use? I see the twitter icon.

Best regards,
Weblionmedia

Hello WLM,

Great theme!

How are you?

My question is: How can I change the tag title for each individual page to the post title?

I changed the site title to my target KW and it did the function I wanted.

The issue is, I don’t know how to change the title for each individual page/post.

After doing more research, I found this: https://wordpress.org/support/topic/change-the-title-of-each-page

Which led me to this for my site:

<title><?php //Print the <title> tag based on what is being viewed. global $page, $paged; // Add the blog name. bloginfo( ‘name’ ); // Add the blog description for the home/front page. $site_description = get_bloginfo( ‘description’, ‘display’ ); if ( $site_description && ( is_home() || is_front_page() ) ) echo ” | $site_description”; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) echo ’ | ’ . sprintf( __( ‘Page %s’, ‘business-news’ ), max( $paged, $page ) ); ?></title>

How can I change the tag title for each individual page to the post title?

Thank you and let me know if you need further clarification.

This is very urgent.

All the best, Phil

Default-user

I fixed this on my own and no longer need assistance.

Take care, Phil

WebLionMedia

Glad to hear this, Phil.

Best regards, Weblionmedia

Is it possible to add a Linkedin widget next to my FB and twitter widgets as well as Linkedin buttons to the header and footer?

All the best, Phil

WebLionMedia

Hello,

What header and footer version are you use in Theme Options?

Weblionmedia

Default-user

It says Version 4.0 in the bottom right corner of Header. Is this what you are asking or something else?

WebLionMedia

Sorry, I confused with another theme. I have found your email, will reply to it in a few seconds.

rolover Purchased

I need a big slider to put on category pages. The exact same big slider from homepage that shows most recent posts, but be able to show posts from a specific category.

I need this since I’m making a custom category page.

Thanks!

WebLionMedia

Hello,

What is the shortcode name for this slider (big slider from homepage that shows most recent posts)? Thank you.

Weblionmedia

Default-user
rolover Purchased

[slider_posts slider_name=”home_slider1” count=”5”]

rolover Purchased

I’m no programmer but I managed a little hack to put a big slider (like on the homepage) on the category pages to show latest posts in that category.

Use this shortcode in your archive.php:

echo do_shortcode('[slider_posts slider_name="home_slider1" count="5"]');

And then edit this code in functions/slider-functions-posts.php:


if ($id_array) {

        $ids_chunks = explode(",", $id_array);
        for ($i=0;$i<count($ids_chunks);$i++) {
            $id_array_final[] = trim($ids_chunks[$i]);
        }

        $slider_items_count = count($ids_chunks);

        $args=array(
            'post_type' => $type,
            'post_status' => 'publish',
            'posts_per_page' => $slider_items_count,
            'post__in' => $id_array_final,
            'orderby' => 'ID',
            'order' => 'desc'
        );
    } else {

        $args=array(
            'post_type' => $type,
            'post_status' => 'publish',
            'posts_per_page' => $slider_items_count,
            'orderby' => 'ID',
            'order' => 'desc',
        );    
    }

with this:


if ($id_array) {

        $ids_chunks = explode(",", $id_array);
        for ($i=0;$i<count($ids_chunks);$i++) {
            $id_array_final[] = trim($ids_chunks[$i]);
        }

        $slider_items_count = count($ids_chunks);

        $args=array(
            'post_type' => $type,
            'post_status' => 'publish',
            'posts_per_page' => $slider_items_count,
            'post__in' => $id_array_final,
            'orderby' => 'ID',
            'order' => 'desc'
        );
    } elseif (is_category()){ //javiadded

    //get cat ID to show only slides in current category
    $catid = get_query_var('cat'); //javi added

        $args=array(
            'post_type' => $type,
            'post_status' => 'publish',
            'posts_per_page' => $slider_items_count,
            'orderby' => 'ID',
            'order' => 'desc',
            'cat' => $catid //javi added
        );    

    } else {

        $args=array(
            'post_type' => $type,
            'post_status' => 'publish',
            'posts_per_page' => $slider_items_count,
            'orderby' => 'ID',
            'order' => 'desc',
        );    
    }

How to translate the date that appears at the top?

WebLionMedia

Hi,

Let’s make an example for French language for instance. Please do these 2 steps:

1) Open the file functions.php from the main theme folder and add this new function:

function date_french($format, $timestamp = null) {
    $param_D = array('', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam', 'Dim');
    $param_l = array('', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi', 'Dimanche');
    $param_F = array('', 'Janvier', 'Fevrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Aout', 'Septembre', 'Octobre', 'Novembre', 'Decembre');
    $param_M = array('', 'Jan', 'Fev', 'Mar', 'Avr', 'Mai', 'Jun', 'Jul', 'Aou', 'Sep', 'Oct', 'Nov', 'Dec');

    $return = '';
    if(is_null($timestamp)) { $timestamp = mktime(); }
    for($i = 0, $len = strlen($format); $i < $len; $i++) {
        switch($format[$i]) {
            case '\\' : // fix.slashes
                $i++;
                $return .= isset($format[$i]) ? $format[$i] : '';
                break;
            case 'D' :
                $return .= $param_D[date('N', $timestamp)];
                break;
            case 'l' :
                $return .= $param_l[date('N', $timestamp)];
                break;
            case 'F' :
                $return .= $param_F[date('n', $timestamp)];
                break;
            case 'M' :
                $return .= $param_M[date('n', $timestamp)];
                break;
            default :
                $return .= date($format[$i], $timestamp);
                break;
        }
    }
    return $return;
}

2) Now, open the file header.php from the main theme folder and replace this code:

<?php if (get_option($shortname."_block_today_date") == 'true') { ?>
<div class="block_today_date">
    <div class="num"><p id="num_top_day"><?php $today = getdate(); if ($today['mday']<10) echo '0'; echo $today['mday']; ?></p></div>
    <div class="other">
        <p class="month_year"><span id="month_top_display"><?php $today["month"] = date("M");  echo $today['month']; ?></span>, <span id="year_top_display"><?php echo $today['year']; ?></span></p>
        <p id="day_top_display" class="day"><?php echo $today['weekday']; ?></p>
    </div>
</div>
<?php } ?>

with this one:

<?php if (get_option($shortname."_block_today_date") == 'true') { ?>
<div class="block_today_date">
    <div class="num"><p id="num_top_day"><?php $today = getdate(); if ($today['mday']<10) echo '0'; echo $today['mday']; ?></p></div>
    <div class="other">
        <p class="month_year"><span id="month_top_display"><?php $today["month"] = date_french("M");  echo $today['month']; ?></span>, <span id="year_top_display"><?php echo $today['year']; ?></span></p>
        <p id="day_top_display" class="day"><?php echo date_french('l');  ?></p>
    </div>
</div>
<?php } ?>

Best regards
Weblionmedia

Is it possible to place ads (specifically, adsense) within the body/content of posts? If so, how?

If not, could you create a shortcode for it?

My site: jobclincher.com

WebLionMedia

Hello,

Add this Adsense shortcode into the file functions.php:

function theme_adsense($atts, $content = null) {
    extract(shortcode_atts(array(
        "width" => "300",
        "height" => "250",
        "pub" => "",
        "slot" => "",
        "align" => "none" //none, left, right 
    ), $atts));

    return '
        <div style="float:'.$align.';">
            <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
            <!-- '.$width.'*'.$height.' -->
            <ins class="adsbygoogle" style="display:inline-block;width:'.$width.'px;height:'.$height.'px" data-ad-client="'.$pub.'" data-ad-slot="'.$slot.'" />
            <script>
            (adsbygoogle = window.adsbygoogle || []).push({});
            </script>
        </div>
    ';
}
add_shortcode("adsense", "theme_adsense");

Usage:

[adsense width="300" height="250" pub="ca-pub-123456789" slot="123456789" align="none"]

Parameter align:


align="none" 
align="left" 
align="right" 

Best regards,
Weblionmedia

Default-user

Thank you so very much!

WebLionMedia

I’m glad to help you!

The contact form is not sending the email!

Default-user

Says the email was sent plus it arrives!

WebLionMedia

Please, write me using the contact form in my profile. There we could take a look to this closer. Thank you.

by
by
by
by
by
by