Bad theme code – can you find the error?

This is what I have, and I need each of these blocks to pull the link, title of each blog post, and featured image they’re supposed pull. Do you see the error? <div class=”home-featured-block”> <?php $featured_block=$profitmag_settings[‘featured_block_one’]; $no_of_block=$profitmag_settings[‘no_of_block_one’]; $query1=new WP_Query( ‘cat=’.$featured_block.’&posts_per_page=’.$no_of_block ); if( $query1->have_posts() ): $cat_name = get_cat_name( $featured_block ); ?> <h2 class=”block-title”><span class=”bordertitle-red”></span><?php echo $cat_name; … Read more

Where to put include php file?

I have a third party php form code that starts with: <? include(“xxx-xxx.php”); ?> <form method=”post” action=”https://www.xxxxxx etc etc…. Where do I have to put the xxx-xxx.php file for it to connect? Answer First of all I must say that I don’t think this is a wordpress related question. That said I hope this following … Read more

Simple Redirect but getting the right code?

I need to change these links so the dashboard link directs to the forum profile instead of the wordpress admin panel profile can you help? <ul> <li><a href=”<?php echo home_url() ?>/wp-admin/”><?php _e( ‘Dashboard’ , ‘tie’ ) ?> </a></li> <li><a href=”<?php echo home_url() ?>/wp-admin/profile.php”><?php _e( ‘Your Profile’ , ‘tie’ ) ?> </a></li> <li><a href=”<?php echo wp_logout_url(); … Read more

feed url problem

hey hii everyone, i have a function to fetch the videos from the rss feed of youtube, so that i can display selected videos to my blog for that i am using this youtube-search-feed url in the url, eminem is included, so it will display me videos of eminem, now my problem is, instead … Read more

Creating a press page for our project

Over time our project got some good press: press releases, interviews, media appearances Now I want to create a “press page” (something like this). Requirements: is easy to update – everyone can write html at some degree, the procedure for adding a new article on the press page should be straightforward aggregates content from the … Read more

How to get the Woocoomerce subtotal value without tax in the hardcode? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 4 years ago. Improve this question I’m trying to find the subtotal value without tax in the hard-code. I want to use the value after people have … Read more

Code Highlighting in BlockQuote

Many of my WordPress Blog( posts have code snippets which is wrapped in blockquote elements. I need to highlight these code snippets. I tried using GeSHi, Prettify Code Syntax, CodeColorer but none of them works for blockquote elements. Is there any plugin that supports code highlighting for blockquotes ? OR How can I customize the … Read more