Custom Links in Walker Class

Test for … $item->object=”custom” This is used for custom links only. $item->object is always the post type or the item type (category for example). Not sure what happens when someone registers a custom post type named custom 🙂

How do I use CSS or PHP to customize WordPress Form Manager Plugin Table?

many ways to do it, not best but easiest is problably javascript: <script type=”text/javascript”> jQuery(‘.fm-item-cell-country:contains(“USA”)’).addClass(‘americanflag’); </script> from that you edit your css (which I guess you’re more comfortable with), setting property for each class (.americanflag in that case) Hope that help a bit

Trying to put a search page on site

You form action value is wrong. It should be home_url(). WordPress will pick the search template automatically then. The search field has to use the name s: <input type=search name=s> Otherwise WordPress will not recognize the request as a search request. The error happens, because you included the functions.php somehow withut using the automatic by … Read more

WordPress blog set up

It sounds like you should be looking into WordPress multisite. Multisite is a way to run multiple sites on a single installation of WordPress. WordPress.com is an example. One big advantage of multisite is that it runs off a single set of plugins and themes. That means you can allow separate users/authors to only have … Read more

check if .min.css stylesheet exists

Directly answering your question, you should be able use the function admin_url() to get the base URL for the admin folder, and ABSPATH . ‘wp-admin’ to get the local file path to that folder. Certainly, the WordPress code itself doesn’t expect the admin folder to be named anything different. However, you should be able to … Read more

Can i show items based on the day with php?

Most probably off-topic question… You can use: $var = date(“D”); to get the current day of the week. Then make a switch or a series of if-else to choose which posts you’ll want to display for that day.

Static pages not being allowed

There are many things to check for. It sounds like you are not doing anything ‘complex’ so I’d start by looking at the theme you are using to see if it has its own custom settings for ‘front page’ type features. Maybe those are getting in the way? Sorry, without any more detailed information, it’s … Read more

Add multiple JavaScript files to template header [duplicate]

You can’t have <script> elements within your PHP like that. Either take them out of the PHP delimiters (<?php ?>) or use wp_register_script() and wp_enqueue_script() to get your scripts within WordPress. Update how can i use wp_enqueue_script() with multiple scripts ? wp_register_script( ‘jquery-1.8.2’, get_template_directory_uri() . “https://wordpress.stackexchange.com/scripts/jquery-1.8.2.min.js” ); wp_register_script( ‘contact’, get_template_directory_uri() . ‘/scripts/contact.js’ ); wp_register_script( ‘easing-1.3’, … Read more

Custom Meta Box If Else Statement

You can try this: <?php // get image source: $metaboxtext3 = esc_attr( get_post_meta( get_the_ID(), ‘my_meta_box_text3’, true ) ); // get link: $metaboxtext4 = esc_attr( get_post_meta( get_the_ID(), ‘my_meta_box_text4’, true ) ); // check if the image source exists: if(strlen($metaboxtext3)>0){ ?> <a href=”https://wordpress.stackexchange.com/questions/84788/<?php echo $metaboxtext4; ?>”><img src=”<?php echo $metaboxtext3; ?>” alt=”” onerror=”this.style.display=’none'”/></a> <?php } ?>