ArgosGP
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Developing with WordPress
In reply to: Integration problem, conflict with wp-load.phpTo DionDesigns
Be advised – my full disclosure as well – I use your bridge to make it possible to log into WP using the PHPBB authentication. Since I’m still running 3.0 I did not use the PRO version.
I set up so I can get the information from the e-zine:
<?php //---------- Sets up to get the Categories from the ezine require($_SERVER['DOCUMENT_ROOT'] . '/ezine/wp-load.php'); $args = array( 'type' => 'post', 'child_of' => 0, 'parent' => '', 'orderby' => 'term_id', 'order' => 'DESC', 'hide_empty' => 1, 'hierarchical' => 1, 'exclude' => '', 'include' => '', 'number' => '', 'taxonomy' => 'category', 'pad_counts' => false); $ezine_categories = get_categories( $args ); //--------------------------------------------------------
Then in the menu structure I insert the following:
<div class="col-md-6 col-sm-6"> <h6><strong>The Archives</strong></h6> <ul class="mega-links"> <?php $num_count = 0; foreach ( $ezine_categories as $category ) : $num_count++; if($num_count <=6){ ?> <li><a href="https://www.goreanpalaces.com/ezine/category/<?php echo $category->category_nicename;?>" target="_blank"><?php echo ucwords(strtolower($category->name));?></a></li> <?php } endforeach; ?> </ul> </div>
Any hints on how I could use your bridge to accomplish this more easily; and, without conflict?
Thanks so much for being willing to give an answer.
- This reply was modified 6 years, 11 months ago by ArgosGP.
Viewing 1 replies (of 1 total)