Forum Replies Created

Viewing 15 replies - 1 through 15 (of 44 total)
  • Thread Starter vean

    (@vean)

    Anyone? Please…

    Thread Starter vean

    (@vean)

    bump

    Thank You VERY VERY MUCH monkeymynd!
    I have looked before that url You suggest me but then I didn’t find answer. Now I did!!! 🙂 Thanks once again.

    My questions was,
    How to show 1 post which belong to both:
    CURRENT Category + some other category?

    SOLUTION :
    =============================================================
    1. QUERY in category.php show 1 post which belong to both:
    current category + category 12 (ID).
    =============================================================
    <?php query_posts(array(‘showposts’ => 1, ‘category__and’ => array($cat,12))); ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class=”post”>
    bla bla bla … define how is that post shown.
    </div>

    <?php endwhile; ?>

    =============================================================
    And below that query I have another query->
    =============================================================
    2. QUERY in category.php show all other posts which belong
    to current category as usually.
    =============================================================

    <?php
    $categoryvariable=$cat;
    $queryCAT= ‘cat=’ . $categoryvariable. ‘&orderby=date&order=ASC’;
    query_posts($queryCAT); ?>
    <?php while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate ) continue;
    update_post_caches($posts); ?>

    <div class=”post”>
    bla bla bla … define how is that post shown.
    </div>

    <?php endwhile; ?>
    =============================================================

    enjoy 😉

    P.S. sorry on my bad English

    Anyone?

    In fact, is it possible to do something like that?

    Please……

    Hy,

    same problem here, only I’m looking for solution to show those posts in some category.

    Actually, let say,
    In category 5 I want to show post which belong to category 3 and 5.
    Or I can say…
    show post which belong to CURRENT CATEGORY and CATEGORY 5.

    Thanks for any help in advance.
    Andrija

    Thread Starter vean

    (@vean)

    I really can not believe that there is no reply………..

    I read all the time that wordpress forum is worst from all, but never have that problem before.

    I really hope so I wouldn’t agree with that thought… 🙂

    Thread Starter vean

    (@vean)

    ?

    Thread Starter vean

    (@vean)

    Anyone? Anything?

    Please…

    Thread Starter vean

    (@vean)

    I’m sorry to post 2 same topics, but I get some error from bbpress.
    I ask moderators to delete 1 if is possible.

    Sorry once again.

    Thread Starter vean

    (@vean)

    Hy,
    I wasn’t online last few days. Have some offline job. 🙂

    Just want to thank You Kolucciy. It is working great.
    Also, if someone want to allow using Antropos just for ADMINS:

    Replace:

    function atropos_add_box () {
      add_meta_box('atropos', __('Expiration Date'), 'atropos_custom_meta_box', 'post', 'advanced', 'high');
    }

    With THIS:

    function atropos_add_box () {
    	get_currentuserinfo() ;
    	global $user_level;
    	if ($user_level > 9) {
      add_meta_box('atropos', __('Expiration Date'), 'atropos_custom_meta_box', 'post', 'advanced', 'high');
    }}

    Thread Starter vean

    (@vean)

    Anyone?

    Please…

    OK, my PROBLEM SOLVED.

    I send email to Qian Qin and get answer.
    Probleum is I’m not reading FAQs careflly. 🙂

    I didn’t install .mo files.

    So, for every language You want to use…. INSTALL .mo files, and edit wp-config file. While downloading .mo files watch to CHOOSE it for RIGHT WP version.

    Here is everything nice written:
    http://codex.wordpress.org/Installing_WordPress_in_Your_Language

    Few more details:

    I try this code:
    <?php_e('[lang_en]english text[/lang_en][lang_de]german text[/lang_de]'); ?>
    and I get: Fatal error: Call to undefined function php_e() in

    When I try almost same code from FAQ page ofQTransate:
    <?php _e(’[lang_en]english text[/lang_en][lang_de]german text[/lang_de]’); ?>
    I didn’t get any errors but I didn’t get any text also.

    If You don’t see difference, it is between –>'<– and –>’<– signs.

    Everything else is working beautifully, for now.

    Hello,

    I have just one questions/problem:

    I need to use some tags like [lang_xyz][/lang_xyz] inside my single.php file. Is there some kind of code for something like that?

    I need this because I have some Custom Fields and need to get them translated in template file.

    Here is example what I try but that doesn’t work:
    <p>[lang_en]<strong>English text</strong>[/lang_en] [lang_de]<strong>Deutsch text</strong>[/lang_de]<?php meta(ad_xyz); ?></p>

    Thanks for any help

    Did You find some solution for this?

    I did find easypaypal plugin but it is working just with paypal and have some other disadvantages like: you can not add credit manually for some users, and don’t have moneybookers option.

    Moneboookers is needed for Europe users, and I will surely have lots of users which still don’t have monebookers or paypal so they will transfer money over post office or bank transfer. Because of that I also need manual option of adding credits.

    Anyway, I also need some better plugin, so if someone find solution…
    pjalease share.

    Thanks.
    Andri

Viewing 15 replies - 1 through 15 (of 44 total)