The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
10 views

HTML tags in comments

I'm using latest Wordpress & Thesis theme. I have a technical blog where i want users to be able to put comments in the code. When i try to add a code to the comment (as a non logged in user) ...
0
votes
1answer
26 views

get_page_template returning nothing

I run this code in front-page.php as well in category-foo.php <?php echo is_page_template( 'front-page.php' ) ? "yes" : "no" ?> and get both times "no" printed i tried as well <?php ...
0
votes
1answer
35 views

Alternative functions for mysql_free_result and mysql_ping in wordpress functions

what are the alternative function for mysql_free_result and mysql_ping in WordPress functions , does WordPress function provides all the functions like php ? is it necessary to Free result memory for ...
0
votes
0answers
12 views

Editing the header tag for upcoming posts

i want to change my wordpress blog header file so that every new post that i publish should have that particular custom code within the header file without me having to change is manually for each ...
0
votes
1answer
23 views

It possible to implement an adhoc php web application with wordpress?

I need to implement a web app in php and I wonder if it would be a good solution to use wordpress or just do it with external php code my web app: Has some panels with forms for the users to fill, ...
0
votes
0answers
14 views

plugin first menu name different from first submenu using register_post_type

i made plugin where i had used "register_post_type" to create custom post taxonomy. problem i that my first sub menu is also name of my plugin how can i fix it Below i code add_action( 'init', ...
0
votes
2answers
22 views

Remove Metaboxes

I try to remove metaboxes from non-admin for posts, pages, and add products page (WooCommerce), and this my code: // ciusART Remove Metaboxes add_action('admin_head', ...
-3
votes
1answer
43 views

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"> ...
0
votes
0answers
20 views

Special characters get auto replaced

When I create a new post in WordPress and I publish my post, everything is OK. But when I try to edit my old post, the code in [code] has changed. For example " changes to &quot; and < ...
0
votes
0answers
17 views

Delete users thats not members of a subsite

I need a code on the multisite network area to auto delete everyone on the network that isnt member of a subsite. It should delete them every 24 hours or directly. Is there anyone having the slightest ...
0
votes
2answers
89 views

Accidentally deleted php code in Wordpress website [closed]

I have a website: www.convert2latex.com . While trying to remove the "continue reading", I accidentally deleted some code and updated it in the theme editor's functions.php. Now the website does not ...
0
votes
0answers
63 views

Embedding code snippets in posts with indentation

I have a privately hosted blog using WordPress, and I am using the SyntaxHighlighter Evolved plugin for displaying highlighted code snippets nicely. I use the built-in editor in WordPress for writing ...
1
vote
2answers
1k views

Upload Multiple Files With media_handle_upload

I have a WordPress form plugin and I use media_handle_upload to upload the files and get there ids directly and attached its ids to the post as a meta date, I used the following to did that: The HTML ...
-3
votes
1answer
140 views

Can you not edit the HTML and PHP of your WordPress without paying?

Sorry for the noob question. I'm new to WP. I'm not seeing where I can edit the HTML and PHP of my blog. I see a bunch of GUI options to change colors, etc. but nothing to change my blog's source ...
0
votes
1answer
116 views

how to add number value in front for variable [closed]

Hi there my question is very simple, is there a way by which we can add a value in the end of the variable a numeric value. like we have a variable $tota $tota1 $tota2 $tota3 each have different ...
0
votes
0answers
26 views

Write Custom Access Control Code For WordPress Download Manager

The WordPress Download Manager plugin by default allow us to select which rule can access the file. But I have a special case, I want if the user have a meta date equal to specific value then the ...
0
votes
0answers
19 views

How to add 'Drag and Drop' features in Wordpress?

I would love to add drag and drop option for my wordpress themes. May I have the guidelines on how to do this?
0
votes
1answer
23 views

Widget Logic code for different PMP membership levels

I'm using both Paid Memberships Pro and Widget Logic plugins. In PMP, I set up 2 membership levels - one free ( id# = 3) , one paid (id# = 1) With Widget Logic, I'd like to have the custom sidebar ...
0
votes
1answer
47 views

Google analytics won't work in wordpress

I have a godaddy host and I am using wordpress platform using simple key theme. In simplekey options - additionals it gives me option to add Additional Codes.. so I did add a code from google ...
0
votes
1answer
16 views

Where do I add an action hook & callback in my theme?

Another answer suggests to Hook into the action wp_head but I am a newbie and I do not know where I am supposed to add the code provided. add_action( 'wp_head', 'wpse_91073_noindex' ); ...
0
votes
2answers
1k views

How to display posts of specific category using a custom Query in WordPress?

Hi I want to display a specific category from a custom query in WordPress. My code works fine and it gets the latest 4 posts, but what I want now is to retrieve a specific category. My code is below ...
0
votes
2answers
32 views

Code to Show for One post only in head

I want to add this code only for one post before </head> <link rel="alternate" hreflang="en-gb" href="http://abc.com"/> What code shall i use?
-2
votes
2answers
276 views

CSS code for “inserting a custom post divider” after each post

I want to add a custom post divider to separate my posts. I'm using the Enfold theme in WordPress.org. I've searched for the answer to my question but I don't understand the coding language. I ...
0
votes
1answer
144 views

WP List Pages - Add Title Attributes to Anchors

Using the default wp_list_pages() is there an easy way / filter to add title attribute to the anchors? Right now it just spits out the anchor with no title attribute but I would like to add it on ...
1
vote
0answers
113 views

source code: WP_INSTALLING vs. WP_SETUP_CONFIG in setup-config.php

I am trying to make sense of the wordpress installation process. The file setup-config.php under wp-admin has the following. I want to know what the difference is between these two variables, why both ...
0
votes
1answer
41 views

Add space to the end on a widget

I have a widget that when stacked with another the out put from my widget to the next sit on top of each other. I tried echo <br> but that gives me a fatal error. Is there any other code to add ...
1
vote
1answer
326 views

Open posts in editor in the 'Text' mode by default

I have a few posts where there are some code segments. When I try to make small edits in the post, it opens in the 'Visual' mode and all the non-alphanumeric characters (e.g. >) are converted to ...
2
votes
1answer
576 views

Has anyone tried putting PHP ActiveRecord on Wordpress?

I have worked with Ruby on Rails and I was looking for some code that did something close to the wonderfull RoR's ActiveRecord. I stepped by this site. Its PHP-ActiveRecord! I found it amazing, and ...
0
votes
1answer
45 views

How can I optimize this code? [closed]

I have an Advanced Custom Fields Checkbox that I'd that I need to do some checks on. If a checkbox is ticked in the back end, it outputs an appropriate image on the front end. I've got some code that ...
0
votes
1answer
189 views

How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?

I have a blog at www.exeideas.com where I am sharing codes snippet too. I am new to WordPress and migrated from Blogger. So now my all codes shared in posts stop working. When I check my codes then ...
0
votes
0answers
25 views

Show recent ads from certain categories

I ask you to help experts, the problem is: I'm using a template classified, are shown on the home for the latest upload, but I would like to show ads in different categories. Let me explain, I ...
0
votes
1answer
67 views

widget that will do shortcodes that user inputs

I have this widget that im working on and it allows the user to input a shortcode and it will display it in the sidebar. But its not working right. I can input the short code but it has no output. ...
0
votes
1answer
23 views

A good way to include snippets of code in both posts, pages and Event Manager Template files?

(I am not sure if I am phrasing this correctly, so please bear with me and be kind. ) I have a setup where the same information need to be included in both pages, and individual Events (Custom post ...
1
vote
1answer
202 views

Gist shortcode is not working

I freshly installed a brand new Wordpress for testing purpose as I am intending to refresh my current website. One of the requirement I have is to be able to embed code from Gist. Following the ...
0
votes
0answers
178 views

PHP random number in email

I have a Wordpress website where i am making a form so that when a user fills out that form he gets a confirmation email and receives a random order number. I have this PHP function which creates that ...
0
votes
1answer
157 views

Adminbar Missing “Edit Page”

I'm encountering a problem that involves that my Admin bar doesn't show the "Edit Page" on pages I visit on my site. Instead for some odd reason it show "Edit Category" instead on supposed page. Does ...
1
vote
1answer
883 views

Successful or Error Message after running mysql code in functions.php

Just for this article, suppose there is a code that I want to run on my WordPress' functions.php file. It's a code to delete mysql table on my database. For example, here's the code: $wpdb->query( ...
0
votes
1answer
81 views

get post excerpt by query

I'm trying to get post excerpt by query my code is below global $wpdb; $posts = $wpdb->get_results ("SELECT post_title, post_excerpt FROM $wpdb->posts WHERE post_status = 'publish' AND ...
0
votes
1answer
13 views

How to stop displaying the Id without losing the functionality

I am using a custom code to make certain plugin's functionality available only with particular capabilities. Here is the code: <?php // Check if User can Edit // Set permission to false = 'not ...
0
votes
1answer
706 views

how to call new widgets in sidebar in custom theme?

I am developing a theme in which I want to call available widgets ex. Calendar and the installed plugin, I have put it in the sidebar from widget panel but can't see in frontend. Sidebar.php Code-> ...
0
votes
1answer
36 views

Blog only showing code

I would like to have some help. I host a wordpress blog in my raspberry pi running apache2, but when I browse the blog it only shows the code as you can see here http://lifeonpi.sytes.net/raspgrammer/ ...
1
vote
1answer
117 views

Latest post in a specific menu

is it possible to show the latest posts only in a specific menu? This is my menu: register_nav_menus(array( 'primary' => __('Primary Navigation', 'gonzo'), 'mobile' => __('Mobile Navigation', ...
0
votes
1answer
63 views

Display pages from specific page template

Okay I have found the following code on line, which seems to be working and displaying all of the pages using the page_library_html.php template. This code only shows the title of them though. Can ...
-1
votes
1answer
89 views

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 ...
-1
votes
2answers
120 views

Code Highlighting in BlockQuote

Many of my Wordpress Blog(http://subinsb.com/) posts have code snippets which is wrapped in blockquote elements. I need to highlight these code snippets. I tried using GeSHi, Prettify Code Syntax, ...
0
votes
1answer
149 views

How to add source code into wordpress post really?

Ok, I have read and followed the instructions as written in this link: http://en.support.wordpress.com/code/posting-source-code/ I have tried all other the solutions, including reinstall the whole ...
0
votes
1answer
70 views

How to get tags and categories?

I used the following code to get tags from the post and then simply echo them: $posttags = get_the_tags($post->ID); if ($posttags) { foreach($posttags as $tag) { echo $tag->name . ', ';} ...
0
votes
0answers
71 views

Live coding in WordPress

Is there a plugin or an easy way to integrate code writing and compilation windows in WordPress, for example to duplicate the Learn Python functionality (see at bottom).
1
vote
2answers
477 views

How to display php source code inside a post using visual editor?

NOTE I don't want the php code to be executed, only displayed. I want to display this php code <?php wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ); ?> inside a post. I cannot make ...
5
votes
2answers
803 views

Create custom [sourcecode] shortcode, the right way?

What I want to do Sharing code in posts on WordPress is quite a pain with all the HTML escaping to take care of. So, I plan to enclose code in posts within a custom shortcode called [sourcecode], as ...