Forum Replies Created

Viewing 15 replies - 151 through 165 (of 166 total)
  • Thread Starter mariostella

    (@mariostella)

    This is very weird. I did try substituting it previously and it gave me error (maybe I put an unneeded space) but now it works! Great!
    I need to eliminate the <p> because it screws up all my template
    Thanks!!!

    Thread Starter mariostella

    (@mariostella)

    Yes, sorry I mixed up the strings (and the version name) again…
    Do you mean there is no way of removing the p tag from version 0.99.1 ?
    Can I customize the string from 0.96 to work for version 0.99.1?
    Thanks

    Thread Starter mariostella

    (@mariostella)

    Sorry, made a mistake..in version 0.91.1 the string is

    $search = "@(?:<p>)*\s*\[singlepic=(\d+)(|,\d+|,)(|,\d+|,)(|,watermark|,web20|,)(|,right|,center|,left|,)\]\s*(?:</p>)*@i";

    Thread Starter mariostella

    (@mariostella)

    done with a query:

    <?php
    
    $gal = get_post_meta($post->ID, 'gallerypopup', true);
    
    $gal = apply_filters('the_content', $gal );
    
    echo $gal;
    
    ?>
    Thread Starter mariostella

    (@mariostella)

    done with a query:

    <?php
    
    $gal = get_post_meta($post->ID, 'gallerypopup', true);
    
    $gal = apply_filters('the_content', $gal );
    
    echo $gal;
    
    ?>
    Thread Starter mariostella

    (@mariostella)

    Thanks Otto, I will bear this in mind…I am just a total rookie with php so I truly appreciate a pro sparing a thought..actually if you don’t mind I would appreciate a better explanation of what you wrote…maybe with a simple example..thanks!

    Thread Starter mariostella

    (@mariostella)

    Thank you, I have been doing some tweaking but how can I solve the short tag issue as specified in my previous post? Do I have to tweak something else in the function.php file? I need to convert the plugin from accepting short tags only into also/only accepting php tags.

    Thread Starter mariostella

    (@mariostella)

    Ok, thanks for the reply…I will implement this at a later stage…however I realized that the short tag format does not allow for dynamic content within the short tag, therefore I cannot call the desired gallery (as stated above I am obliging the user to insert the title of the gallery equal to the post title, intending to call with the_title php tag). Additionally I have another problem. NextGen changes the name gallery from, for example, My Gallery to my_gallery by default. Now, this is another problem, as I cannot ask my users to title their posts with underscores instead of the spaces and write all lower case words…how can I bypass this? Thank you!

    Hi, I just made some mod to my navigatin bar to make it more dynamic…please read the post https://www.ads-software.com/support/topic/194853?replies=1#post-822922

    Thread Starter mariostella

    (@mariostella)

    Just an update. If you are thinking “well just apply a query!!” just like:

    $querystr = "
    SELECT $wpdb->posts.* FROM $wpdb->posts
    LEFT JOIN $wpdb->postmeta ON($wpdb->posts.ID = $wpdb->postmeta.post_id)
    WHERE $wpdb->posts.post_status = 'publish'
    AND $wpdb->posts.post_type = 'post'
    AND $wpdb->postmeta.meta_key = 'sconto'
    ORDER BY $wpdb->posts.post_date DESC
    LIMIT 4";
    
     $pageposts = $wpdb->get_results($querystr, OBJECT);
    
    ?>
    
     <?php if ($pageposts): ?>
      <?php foreach ($pageposts as $post): ?>
       <?php setup_postdata($post); ?>
    <a href="<?php the_permalink(); ?>" rel="bookmark"><img src="https://www.mysite.com/images/grandi/7.jpg" /></a> <div class="prop-list-text"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a><br />From <?php meta('data_inizio'); ?> to <?php meta('data_fine'); ?><br /><?php meta('sconto'); ?>% discount</div>
    	<div class="clear"></div>
      <?php endforeach; ?>
    
     <?php else : ?>
        <h2 class="center">Not Found</h2>
        <p class="center">Sorry, but you are looking for something that isn't here.</p>
    
     <?php endif; ?>

    I already got that as you can see…but this is not what I need! I need to query all the posts with a specific custom field VALUE, not key such as in the above example.

    Can this be done?

    Thread Starter mariostella

    (@mariostella)

    Hi, thanks Filipeabreu, I’ll explain a little better:

    My users must not interact with admin functions so much, also ’cause they don’t really feel like to.. so I am just trying to achieve a no-brainer way to insert pictures for them not to have to explain “put the short code here, look for the gallery ID..” and so forth.

    Therefore I am obliging users to create their own gallery with a unique name (which will be the post title) so that I will be able to feed the code with the_title tag for the gallery name. To complete the whole matter I need a function that from that particular picture extracts whatever picture (could be any, even random) as I will not be able to foresee the filename of any picture users upload.

    I need all this because I want to show the thumb of the picture besides the post excerpt in the last written post page..or wherever I need it..

    Hope now it is clearer, and this also explains why short tags really do not work for this (including the one that you kindly suggested).

    Thanks for your reply..I hope you have any idea on this, ’cause I am clueless..even after trying to modify the plugin to accept complete php tags…

    Forum: Plugins
    In reply to: Custom Fields Search

    Hello Jdhcreative, any luck?

    I am achieving this by setting up the template of my pages so that it dynamically gets the last portion of nav bar, and I do this with the get_title tag. Basically each template already has the nav bar hardcoded inside the html but the last step. All static pages get a full static nav bar hardcoded in the html. The thing is that if you have a gazillion pages that are reachable from a gazillion different pages this method won’t work. Of course if you know how to use php or asp you will be able to do much more magic than this, but as for my needs this is sufficient.

    Try with <!–[if lt IE 7]>

    Are you talking about a navigation bar type of thing?

Viewing 15 replies - 151 through 165 (of 166 total)