NAIJADEALZ
Forum Replies Created
-
Dear TomasRuud, How did you fix the hidden field issue?
I want to be able to create a post using custom post type that depends on the name of the form used to submit the email.
I am thinking of using a hidden field to store the form name.
Please share.
Thank you
Forum: Fixing WordPress
In reply to: Query posts by custom taxonomy term nameHi Peter,
below is what i have now, it is still not working.
What could be wrong with the code? I am trying to get posts by the name of taxonomy term
$args = array( 'tax_query' => array( array( 'taxonomy' => 'store', 'field' => 'name', 'terms' => $mystorename ) ) ); $postslist = get_posts( $args );if(count($postslist) > 0){ ?>
[No bumping. If it’s that urgent, consider hiring someone.]
Forum: Fixing WordPress
In reply to: Change position of login/logout on menuResolved
Forum: Plugins
In reply to: [WP-dTree] [Plugin: WP-dTree] Force open. Node ID?Thanks
Forum: Themes and Templates
In reply to: Center my menu textthanks a lot Andrew.
Forum: Themes and Templates
In reply to: Center my menu textHi Andrew, sorry for the late response.
The screenshot looks good. Thanks.
How can i achieve that?
Forum: Themes and Templates
In reply to: Center my menu textYes, it will not decrease or increase in menu items.
Left align increases the space on the right side of the menu, after home. Right align reduces that space somewhat, but it is still not good-looking.
Justify like is done in Microsoft Word is what I have in mind.
Thanks
Forum: Themes and Templates
In reply to: Center my menu textYes Andrew.
Without the ‘Home’ item, the menu text just ends abruptly after “My account”.What I’d like is for the items to be spaced evenly and the space adjusted accordingly.
Thanks
Forum: Themes and Templates
In reply to: Center my menu textThis main menu here.
The menu items look unevenly spaced.
Forum: Themes and Templates
In reply to: Center my menu textHi Andrew,
I have a child theme, under the couponpress premium theme i’m using.
the above code is from my child theme.Dear Tarun,
The above works perfectly.
You’ve been very helpful, I really appreciate it.
Everything looks just right.
Regards
Just to update you.
I have made some changes to the code and the page looks like this now.
I can live with it this way, if i can arrange the images to grid, if you know what I mean, instead of the random display. and get rid of the annoying bullet points (dots beside the images).
My code now looks like this
get_header( ); /*$terms = apply_filters( 'taxonomy-images-get-terms', '', array('taxonomy' => $thistax) );*/ $terms = apply_filters( 'taxonomy-images-get-terms', '', array('taxonomy'=>'store', 'image_size' => 'thumb', 'term_args' => 'hide_empty=0') ); ?> <div class="itembox"> <h1>Merchants and Brands</h1> <div class="itemboxinner"> <span style='font-size: 20px;color: #006400'> Featured Merchants and Brands</span> <?php foreach( (array) $terms as $term){ echo '<li>'; echo '<div style="margin: 0 10px 10px 0; float: left">'; echo '<a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '">' . wp_get_attachment_image( $term->image_id, 'thumb' ) . '</a>'; echo '</li>'; } echo '</ul>'; ?> </div><!-- end itembox innner --> <div class="itemboxinner"> <span style='font-size: 20px;color: #006400'> All Listed Merchants and Brands</span> <span style='font-size: 16px;color: #006400'> <?php echo $PPTDesign->TaxonomyDisplay(3,$thistax,1); ?> </div><!-- end itembox innner --> </div><!-- end itembox --> <?php get_footer(); }
Here is the link
Dearest Tarun!
WOW! It works now!
I cannot believe how this happened.In the process of troubleshooting, I intalled all my plugins, intending to reinstall “Taxonomy images” only and re-test, but I completely forgot to re-install it.
So, all along, i have been testing the various codes, without the plugin.
Your code works, and so does the plugin.
Just a little fine-tuning needed now, please help.
I am using two codes, for comparison.
What I’d prefer is to have the pictures displayed in 3 columns, with the name of the store below the image (not beside). For any “Store” without an associated image, display only the “Store name”.
Sort list by store name.Your code is producing the second div. I just need help configuring the described and removing the dots beside (they look like bullet points).
<div class="itembox"> <h1>"Tarun's Code"</h1> <div class="itemboxinner"> <?php foreach( (array) $terms as $term){ echo '<li>'; echo '<div style="margin: 0 10px 10px 0; float: left">'; echo '<a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '">' . wp_get_attachment_image( $term->image_id, 'thumb' ) . '</a>'; echo '<a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '">' . $term->name . '</a>'; echo '</li>'; } echo '</ul>'; ?> </div><!-- end itembox innner --> </div><!-- end itembox -->
I really appreciate your help.
Hi Tarun, and thanks for your help.
Unfortunately i could not get that code to work, and the theme support is not of much help. They advised that I hire someone instead of providing help like they advertised.
I got two plugins and combined their functions unto a single page here.
Until I am able to get something exactly like I want, that is it for now.
Apologies for getting back to you late.
Regards