Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi folks,

    Just a note here that this plugin is being actively maintained … there’s an update (3.2) in the works now … https://github.com/Automattic/Co-Authors-Plus/

    Matt

    mattoperry

    (@mattoperry)

    Hi there,

    I’d suggest making a template called taxonomy-prcat.php’ (I assume that prcat is the name of the product categories taxonomy) and then handle the logic you describe inside of that template. Here’s about what you’d do in that template (note: this is incomplete code since I don’t have all of the details, but it should give you the idea)

    `
    //the term
    $current_term = $wp_query->queried_object;
    $animal_decals_term_id = /** code to get the animal decals term ID **/
    $animal_decals_children_ids = get_term_children( $animal_decals_term_id, ‘product_categories’ ); /// note adjust the second arg so it’s the correct name of the taxonomy

    if ( $current_term->ID === $animal_decals_term_id || in_array( $current_term->ID, $animal_decals_children_ids) ) {
    get_template_part( /** YOUR SPECIAL TEMPLATE **/);
    }else{
    get_template_part( /** THE NORMAL ARCHIVE TEMPLATE **/);
    }

    `

    There are many ways to do this, but this would be one of them — good luck!

    Best,

    Matt

    mattoperry

    (@mattoperry)

    Hi there,

    Can you post the code for your query so we can take a look? There might be an issue with how you’re building it. It could also be that the query is not applying in the way you expect.

    Best,

    Matt

    mattoperry

    (@mattoperry)

    Hi there,

    It looks like your theme is using get_template_part() to grab other parts of the template – so the logic you want to modify is not actually here, but rather in those templates. For example, in the line

    <?php get_template_part( 'content', 'none' ); ?>

    Will grab a template called content-none-php … so look for some templates of that form and you’ll find the bit you need to modify to show your excerpt.

    Matt

    Forum: Fixing WordPress
    In reply to: Can't change theme
    mattoperry

    (@mattoperry)

    Hi there,

    Check your Site URL in Settings -> General … it may need to be updated to reflect your new domain.

    You may also find this thread to be useful — it suggests several other problems that could be the cause.

    Thanks,

    Matt

    mattoperry

    (@mattoperry)

    Hi there,

    Can you share a link to your site or further details? Otherwise it may be difficult for anyone to tell what is going on. What plugin did you add?

    Thanks,

    Matt

    mattoperry

    (@mattoperry)

    Hi there,

    There is no published limit that I can find … I would be surprised if you’d run into any problem querying the API every 10 mins or even every minute. Just make sure to follow best practices, like caching responses and you’ll probably be ok. If you start querying multiple times/second or 1000s of times/hour, then they may take notice, but if you’re on the order of several times/minute and you’re not making repeated (duplicate) requests, I doubt you’ll have any trouble.

    Best,

    Matt

    mattoperry

    (@mattoperry)

    Hi,

    Did you used to be able to see the link? Sometimes based on your user level, certain admin menu items may be hidden .. I would check with your site administrator to make sure nothing has changed with your company’s site.

    Another way to access the media manager is to go to a create or edit post page and find the button above the tiny-mce editor.

    I hope this helps,

    Matt

    mattoperry

    (@mattoperry)

    Howdy,

    Here’s a great resource for learning about escaping output and sanitizing input in WordPress themes and plugins.

    I’m assuming you’re working on a theme or plugin since you’re asking this … built-in WordPress search will sanitize the search string … but if you decide to display it in a template, you should definitely escape it first … the function you probably need is esc_html().

    Let me know if this helps.

    Matt

Viewing 9 replies - 1 through 9 (of 9 total)