The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
81 views

Including Angle Brackets In Pre Sections

I am attempting to post some java code between pre tags but the angel brackets get removed. For example: private HashMap<String, HashMap<String, Integer>> featureCounts; becomes ...
0
votes
2answers
27 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?
0
votes
2answers
89 views

Filter and Search

I am working on my site which is a WordPress based site. It is a sweepstakes site well winprizesonline.com is the site which inspired me most. Now I want a dynamic search like that site on my site but ...
-2
votes
2answers
139 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
31 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 ...
0
votes
1answer
50 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
13 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 ...
0
votes
1answer
113 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 ...
0
votes
1answer
69 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
51 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
1answer
36 views

why is markup routinely placed in functions in wordpress?

Here is an exampple from a woothemes theme. I'm definetly not having a go at woothemes - they are a great theme provider with great standards and this sort of thing is fairly typical in themes. why? ...
0
votes
1answer
217 views

CSS Styling for a Page/ Site made with Pagelines

I know how to change the HTML of page inside wordpress but for some reason I can't find the CSS for the page I'm looking for. I can find a huge amount of code made by Pagelines(Is it in there?). The ...
0
votes
1answer
248 views

Show page title just from the first child-page in template

how can I do this: Pages: Home - sub-1 -- sub-sub-1 --- sub-sub-sub-1 On home-page should only show the page-title of the first child-page like: sub-1 I found this: <?php $child_pages = ...
1
vote
0answers
35 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 ...
1
vote
0answers
45 views

Wordpress editor removes all the linefeed characters with WP-Markdown and Syntax Highlighter evolved

I have WP-Markdown and SyntaxHighlighter Evolved wordpress plugins installed. The issue is that when I write the code, and click the "Update" button, I have the code reformatted. [ruby] class Foo ...
0
votes
0answers
10 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
14 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
0answers
8 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
0answers
15 views

Code formatting: Gists vs Embedded

It seems that there are at least a couple different methods of working with code in WordPress entries and posts: GitHub Gists (via the Gist Shortcode plugin, etc.) Inline formatting in a <pre> ...
0
votes
0answers
23 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
0answers
108 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
0answers
57 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).
0
votes
0answers
16 views

Need To Post Unformated Code

Im wanting to use wordpress to share some code snips. However when viewing the posts some of the code tries to format even though its in pre or code tags. Is there anyone way to modify <?php ...
0
votes
0answers
72 views

Sub post not showing in wordpress admin

I am trying to show all the post (including sub post) in wp-admin. but the post which are having parent are not showing in the list of post although the count is giving like 142 post but showing 42 ...
0
votes
0answers
64 views

Code auto escaping is not working when using short codes

I'm using this ages old, but still well working, plugin (source code here) to auto escape html inside <code>. All is well and good until I tried to use short codes to form the ...
0
votes
0answers
506 views

How to add a class name to the ancestor <li> of a post?

I've asked this question before with a different Question Title over at Stackoverflow. At that time, I was not yet aware that a function of the theme is adding a class name called current-menu-item. ...
0
votes
0answers
34 views

Theme Option is not allowing two advertising for home only and rest of site

My Wordpress Theme(Themforest Hottopix) comes with a "theme options" section that allows you to add an ad on the header 970x90 however I was given two ads that are placed on the same spot one is ...
0
votes
0answers
37 views

Images inserted with HTML

I coded some images each image tag with a new line, so visualy you would have a row of images. When I previewed the page instead of showing me a row of images it showed me a column of images. It seems ...